diff options
Diffstat (limited to 'chrome/browser/ui/browser_tab_contents.cc')
-rw-r--r-- | chrome/browser/ui/browser_tab_contents.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/ui/browser_tab_contents.cc b/chrome/browser/ui/browser_tab_contents.cc index 3ec3771c..19d73e3 100644 --- a/chrome/browser/ui/browser_tab_contents.cc +++ b/chrome/browser/ui/browser_tab_contents.cc @@ -13,7 +13,6 @@ #include "chrome/browser/favicon/favicon_tab_helper.h" #include "chrome/browser/history/history_tab_helper.h" #include "chrome/browser/infobars/infobar_service.h" -#include "chrome/browser/managed_mode/managed_mode_navigation_observer.h" #include "chrome/browser/net/load_time_stats.h" #include "chrome/browser/net/net_error_tab_helper.h" #include "chrome/browser/omnibox_search_hint.h" @@ -59,8 +58,8 @@ #endif #if defined(ENABLE_MANAGED_USERS) +#include "chrome/browser/managed_mode/managed_mode_navigation_observer.h" #include "chrome/browser/managed_mode/managed_user_service.h" -#include "chrome/browser/managed_mode/managed_user_service_factory.h" #endif #if defined(ENABLE_PRINTING) @@ -173,9 +172,7 @@ void BrowserTabContents::AttachTabHelpers(WebContents* web_contents) { #endif #if defined(ENABLE_MANAGED_USERS) - ManagedUserService* service = - ManagedUserServiceFactory::GetForProfile(profile); - if (service->ProfileIsManaged()) + if (ManagedUserService::ProfileIsManaged(profile)) ManagedModeNavigationObserver::CreateForWebContents(web_contents); #endif |