Lines Matching full:profile
64 #include "chrome/browser/profiles/profile.h"
203 Browser::Browser(Type type, Profile* profile)
205 profile_(profile),
268 tab_restore_service_ = profile->GetTabRestoreService();
296 // We're the last browser window with this profile. We need to nuke the
313 TabRestoreService* tab_restore_service = profile()->GetTabRestoreService();
327 // An incognito profile is no longer needed, this indirectly
341 Browser* Browser::Create(Profile* profile) {
342 Browser* browser = new Browser(TYPE_NORMAL, profile);
349 Profile* profile,
353 Browser* browser = new Browser(type, profile);
362 Browser* Browser::CreateForType(Type type, Profile* profile) {
363 Browser* browser = new Browser(type, profile);
371 Profile* profile,
385 Browser* browser = new Browser(type, profile);
399 Browser* Browser::CreateForDevTools(Profile* profile) {
400 Browser* browser = new Browser(TYPE_DEVTOOLS, profile);
495 void Browser::OpenEmptyWindow(Profile* profile) {
496 Browser* browser = Browser::Create(profile);
502 void Browser::OpenWindowWithRestoredTabs(Profile* profile) {
503 TabRestoreService* service = profile->GetTabRestoreService();
509 void Browser::OpenURLOffTheRecord(Profile* profile, const GURL& url) {
511 profile->GetOffTheRecordProfile());
518 Profile* profile,
523 ExtensionPrefs* prefs = profile->GetExtensionService()->extension_prefs();
531 tab = Browser::OpenApplicationWindow(profile, extension, container,
535 tab = Browser::OpenApplicationTab(profile, extension, existing_tab);
547 Profile* profile,
569 RegisterAppPrefs(app_name, profile);
578 Browser* browser = Browser::CreateForApp(app_name, window_size, profile,
597 TabContents* Browser::OpenAppShortcutWindow(Profile* profile,
602 profile,
624 TabContents* Browser::OpenApplicationTab(Profile* profile,
628 BrowserList::FindBrowserWithType(profile, Browser::TYPE_NORMAL, false);
634 ExtensionService* extensions_service = profile->GetExtensionService();
692 void Browser::OpenBookmarkManagerWindow(Profile* profile) {
693 Browser* browser = Browser::Create(profile);
700 void Browser::OpenHistoryWindow(Profile* profile) {
701 Browser* browser = Browser::Create(profile);
707 void Browser::OpenDownloadsWindow(Profile* profile) {
708 Browser* browser = Browser::Create(profile);
714 void Browser::OpenHelpWindow(Profile* profile) {
715 Browser* browser = Browser::Create(profile);
721 void Browser::OpenOptionsWindow(Profile* profile) {
722 Browser* browser = Browser::Create(profile);
728 void Browser::OpenClearBrowingDataDialogWindow(Profile* profile) {
729 Browser* browser = Browser::Create(profile);
735 void Browser::OpenImportSettingsDialogWindow(Profile* profile) {
736 Browser* browser = Browser::Create(profile);
742 void Browser::OpenInstantConfirmDialogWindow(Profile* profile) {
743 Browser* browser = Browser::Create(profile);
750 void Browser::OpenExtensionsWindow(Profile* profile) {
751 Browser* browser = Browser::Create(profile);
779 if (profile()->HasSessionService()) {
780 SessionService* session_service = profile()->GetSessionService();
918 SessionService* session_service = profile()->GetSessionService();
922 TabRestoreService* tab_restore_service = profile()->GetTabRestoreService();
1063 TabContentsWrapper* wrapper = TabContentsFactory(profile(), NULL,
1106 TabContentsWrapper* wrapper = TabContentsFactory(profile(), NULL,
1595 BookmarkModel* model = profile()->GetBookmarkModel();
2082 // (where there's no profile) and the time the controller gets another
2479 Profile* Browser::GetProfile() const {
2480 return profile();
2539 const GURL& url, const GURL& referrer, Profile* profile,
2542 TabContentsWrapper* contents = TabContentsFactory(profile, instance,
2624 if (!profile() || profile()->IsOffTheRecord() ||
2625 !profile()->GetTabRestoreService()) {
2631 profile()->GetTabRestoreService()->CreateHistoricalTab(
2658 BookmarkModel* model = profile()->GetBookmarkModel();
2665 BookmarkModel* model = profile()->GetBookmarkModel();
2769 // Propagate the profile to the location bar.
2827 SessionService* session_service = profile()->GetSessionService();
2842 if (!profile()->HasSessionService())
2844 SessionService* session_service = profile()->GetSessionService();
3092 RegisterAppPrefs(app_name, contents->profile());
3208 void Browser::ShowPageInfo(Profile* profile,
3212 window()->ShowPageInfo(profile, url, ssl, show_history);
3309 ExtensionService* extensions_service = profile()->GetExtensionService();
3316 new ExtensionInstallUI(profile()) : NULL));
3332 Profile* profile) {
3333 window()->ConfirmAddSearchProvider(template_url, profile);
3377 Profile* profile = Source<Profile>(source).ptr();
3378 if (profile_->IsSameProfile(profile)) {
3379 ExtensionService* service = profile->GetExtensionService();
3423 if (BrowserList::FindBrowserWithType(profile(),
3445 if (!InstantController::IsEnabled(profile())) {
3637 ExtensionService* extensions_service = profile()->GetExtensionService();
3970 if (!profile()->HasSessionService())
3972 SessionService* session_service = profile()->GetSessionService();
4102 if (profile()->HasCreatedDownloadManager())
4103 download_manager = profile()->GetDownloadManager();
4104 if (profile()->IsOffTheRecord()) {
4109 // Check original profile.
4110 if (profile()->GetOriginalProfile()->HasCreatedDownloadManager())
4111 download_manager = profile()->GetOriginalProfile()->GetDownloadManager();
4138 if ((!normal_downloads_are_present && !profile()->IsOffTheRecord()) ||
4139 (!incognito_downloads_are_present && profile()->IsOffTheRecord()))
4142 // Let's figure out if we are the last window for our profile.
4164 if (normal_downloads_are_present && !profile()->IsOffTheRecord() &&
4165 browser->profile()->IsOffTheRecord())
4167 if (incognito_downloads_are_present && profile()->IsOffTheRecord() &&
4168 !browser->profile()->IsOffTheRecord())
4171 // We test the original profile, because an incognito browser window keeps
4172 // the original profile alive (and its DownloadManager).
4173 // We also need to test explicitly the profile directly so that 2 incognito
4175 if ((*iter)->profile() == profile() ||
4176 (*iter)->profile()->GetOriginalProfile() == profile())
4194 Browser* Browser::GetTabbedBrowser(Profile* profile, bool match_incognito) {
4195 return BrowserList::FindBrowserWithType(profile, TYPE_NORMAL,
4200 Browser* Browser::GetOrCreateTabbedBrowser(Profile* profile) {
4201 Browser* browser = GetTabbedBrowser(profile, false);
4203 browser = Browser::Create(profile);
4270 void Browser::RegisterAppPrefs(const std::string& app_name, Profile* profile) {
4286 profile->GetPrefs()->RegisterDictionaryPref(window_pref.c_str());
4306 Profile* profile,
4311 TabContents* new_contents = new TabContents(profile, site_instance,
4353 if (type() == TYPE_NORMAL && InstantController::IsEnabled(profile()) &&
4354 !profile()->IsOffTheRecord()) {