Home | History | Annotate | Download | only in ui

Lines Matching full:profile

12 #include "chrome/browser/profiles/profile.h"
31 SiteInstance* GetSiteInstance(TabContents* source_contents, Profile* profile,
36 if (ChromeWebUIFactory::GetInstance()->UseWebUIForURL(profile, url))
37 return SiteInstance::CreateSiteInstanceForURL(profile, url);
44 SiteInstance::IsSameWebSite(source_contents->profile(),
60 // Finds an existing Browser compatible with |profile|, making a new one if no
62 Browser* GetOrCreateBrowser(Profile* profile) {
63 Browser* browser = BrowserList::FindBrowserWithType(profile,
66 return browser ? browser : Browser::Create(profile);
94 params->browser->profile(),
134 Profile* profile =
135 params->browser ? params->browser->profile() : params->profile;
137 if (profile->IsOffTheRecord() && !Profile::IsGuestSession()) {
138 profile = profile->GetOriginalProfile();
141 params->profile = profile;
142 params->browser = Browser::GetOrCreateTabbedBrowser(profile);
159 Profile* profile =
160 params->browser ? params->browser->profile() : params->profile;
164 if (!params->browser && profile) {
165 // We specified a profile instead of a browser; find or create one.
166 params->browser = Browser::GetOrCreateTabbedBrowser(profile);
177 if (profile)
178 return GetOrCreateBrowser(profile);
189 if (profile) {
190 Browser* browser = new Browser(type, profile);
199 if (profile) {
200 Browser* browser = new Browser(Browser::TYPE_NORMAL, profile);
207 if (profile)
208 return GetOrCreateBrowser(profile->GetOffTheRecordProfile());
231 if (params->browser->profile()->IsOffTheRecord() &&
261 // Obtain the profile used by the code that originated the Navigate() request.
264 Profile* GetSourceProfile(browser::NavigateParams* params,
267 return params->source_contents->profile();
270 return source_browser->profile();
272 if (params->profile)
273 return params->profile;
276 // the profile associated with the target browser.
277 return params->browser->profile();
351 profile(NULL) {
365 profile(NULL) {
380 if (GetSourceProfile(params, source_browser) != params->browser->profile()) {
381 // A tab is being opened from a link from a different profile, we must reset
424 params->browser->profile(),
425 GetSiteInstance(source_contents, params->browser->profile(), url),