Lines Matching defs:profile
19 #include "chrome/browser/profiles/profile.h"
56 static Browser* GetBrowserInProfileWithId(Profile* profile,
63 static bool GetTabById(int tab_id, Profile* profile,
137 contents->profile()->IsOffTheRecord());
159 browser->profile()->IsOffTheRecord());
218 bool ExtensionTabUtil::GetTabById(int tab_id, Profile* profile,
224 Profile* incognito_profile =
225 include_incognito && profile->HasOffTheRecordProfile() ?
226 profile->GetOffTheRecordProfile() : NULL;
230 if (target_browser->profile() == profile ||
231 target_browser->profile() == incognito_profile) {
259 Browser* browser = GetBrowserInProfileWithId(profile(), window_id,
283 profile(), Browser::TYPE_ANY, include_incognito());
305 Profile* incognito_profile =
306 include_incognito() && profile()->HasOffTheRecordProfile() ?
307 profile()->GetOffTheRecordProfile() : NULL;
310 // Only examine browsers in the current profile that have windows.
311 if (((*browser)->profile() == profile() ||
312 (*browser)->profile() == incognito_profile) &&
384 if (!GetTabById(tab_id, profile(), include_incognito(),
417 Profile* window_profile = profile();
512 if (new_window->profile()->IsOffTheRecord() && !include_incognito()) {
528 Browser* browser = GetBrowserInProfileWithId(profile(), window_id,
593 Browser* browser = GetBrowserInProfileWithId(profile(), window_id,
619 browser = GetBrowserInProfileWithId(profile(), window_id,
647 browser = GetBrowserInProfileWithId(profile(), window_id,
672 browser = GetBrowserInProfileWithId(profile(), window_id,
723 browser->profile()->IsOffTheRecord()) {
724 Profile* profile = browser->profile()->GetOriginalProfile();
725 browser = BrowserList::FindBrowserWithType(profile,
728 browser = Browser::Create(profile);
776 if (!GetTabById(tab_id, profile(), include_incognito(),
809 if (!GetTabById(tab_id, profile(), include_incognito(),
960 if (!GetTabById(tab_id, profile(), include_incognito(),
976 target_browser = GetBrowserInProfileWithId(profile(), window_id,
991 if (target_browser->profile() != source_browser->profile()) {
1046 if (!GetTabById(tab_id, profile(), include_incognito(),
1072 browser = GetBrowserInProfileWithId(profile(), window_id,
1243 if (!GetTabById(tab_id, profile(), include_incognito(),
1310 static Browser* GetBrowserInProfileWithId(Profile* profile,
1314 Profile* incognito_profile =
1315 include_incognito && profile->HasOffTheRecordProfile() ?
1316 profile->GetOffTheRecordProfile() : NULL;
1319 if (((*browser)->profile() == profile ||
1320 (*browser)->profile() == incognito_profile) &&
1332 static bool GetTabById(int tab_id, Profile* profile,
1339 if (ExtensionTabUtil::GetTabById(tab_id, profile, include_incognito,