summaryrefslogtreecommitdiffstats
path: root/chrome/test/base/testing_profile.cc
diff options
context:
space:
mode:
authorfsamuel <fsamuel@chromium.org>2015-04-17 13:30:20 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-17 20:32:25 +0000
commit9cbc00ad9db34aff9bee8388335f751d59da368b (patch)
tree89194752fc8dd895cb0e44af912675cea9d96960 /chrome/test/base/testing_profile.cc
parente208fa48c7ecf3f28f3e0379d0545c2405592f6e (diff)
downloadchromium_src-9cbc00ad9db34aff9bee8388335f751d59da368b.zip
chromium_src-9cbc00ad9db34aff9bee8388335f751d59da368b.tar.gz
chromium_src-9cbc00ad9db34aff9bee8388335f751d59da368b.tar.bz2
Use GuestViewManager::FromBrowserContextIfAvailable more often
In a subsequent patch, I plan to introduce a GuestViewManagerDelegate to allow for extension specific functionality. This CL helps identify which call sites need to create the delegate. BUG=444869 TBR=noms@chromium.org for chrome/browser/profiles, nkostylev@chromium.org chrome/browser/chromeos/login, thestig@chromium.org for chrome/browser/printing. Review URL: https://codereview.chromium.org/1073903003 Cr-Commit-Position: refs/heads/master@{#325701}
Diffstat (limited to 'chrome/test/base/testing_profile.cc')
-rw-r--r--chrome/test/base/testing_profile.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index 6e99b1c..1dfbfa2 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -959,7 +959,7 @@ HostContentSettingsMap* TestingProfile::GetHostContentSettingsMap() {
content::BrowserPluginGuestManager* TestingProfile::GetGuestManager() {
#if defined(ENABLE_EXTENSIONS)
- return extensions::GuestViewManager::FromBrowserContext(this);
+ return extensions::GuestViewManager::FromBrowserContextIfAvailable(this);
#else
return NULL;
#endif