Lines Matching full:profile
79 // Activates a browser window having the given profile (the last one active) if
83 Browser* ActivateBrowser(Profile* profile) {
84 Browser* browser = BrowserList::GetLastActiveWithProfile(profile);
90 // Creates an empty browser window with the given profile and returns a pointer
92 Browser* CreateBrowser(Profile* profile) {
95 Browser::OpenEmptyWindow(profile);
103 // Activates a browser window having the given profile (the last one active) if
106 Browser* ActivateOrCreateBrowser(Profile* profile) {
107 if (Browser* browser = ActivateBrowser(profile))
109 return CreateBrowser(profile);
164 // the profile is loaded or any preferences have been registered). Defer any
489 // It is safe to access the default profile here.
502 // We need a valid g_browser_process to get the profile which is why we can't
539 // It is safe to access the default profile here.
602 std::vector<Profile*> profiles(profile_manager->GetLoadedProfiles());
685 Profile* defaultProfile = [self defaultProfile];
686 // The profile may be NULL during shutdown -- see
728 Profile* defaultProfile = [self defaultProfile];
771 // There may not be a browser open, so use the default profile.
829 profile:[self defaultProfile]];
834 // The profile may be NULL during shutdown -- see
869 Profile* profile = [self defaultProfile];
870 DCHECK(profile);
871 BackgroundApplicationListModel applications(profile);
876 Browser::OpenEmptyWindow(profile);
880 browser->OpenApplicationTab(profile, extension, NULL);
985 - (Profile*)defaultProfile {
1100 Profile* profile = [self defaultProfile];
1120 // tests which use the mock in place of the profile-initialized model.
1122 // Avoid breaking unit tests which have no profile.
1123 if (profile) {
1124 BackgroundApplicationListModel applications(profile);
1172 void ShowInstantConfirmDialog(gfx::NativeWindow parent, Profile* profile) {
1173 if (Browser* browser = ActivateBrowser(profile)) {
1176 Browser::OpenInstantConfirmDialogWindow(profile);