Index: chrome/browser/android/tab_android.cc |
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc |
index f0871c950f91c1dc25d589ed04a22ef8722f8efb..e746967dbdac40b98ea610a3f05f2b239ad637b4 100644 |
--- a/chrome/browser/android/tab_android.cc |
+++ b/chrome/browser/android/tab_android.cc |
@@ -49,6 +49,10 @@ |
#include "extensions/browser/view_type_utils.h" |
#include "jni/TabBase_jni.h" |
+#if defined(ENABLE_MANAGED_USERS) |
+#include "chrome/browser/managed_mode/managed_mode_navigation_observer.h" |
+#endif |
+ |
namespace { |
const char kTabHelpersInitializedUserDataKey[] = |
@@ -109,6 +113,11 @@ void BrowserTabContents::AttachTabHelpers(content::WebContents* contents) { |
predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( |
contents); |
} |
+ |
+#if defined(ENABLE_MANAGED_USERS) |
+ if (profile->IsManaged()) |
+ ManagedModeNavigationObserver::CreateForWebContents(contents); |
+#endif |
} |
// TODO(dtrainor): Refactor so we do not need this method. |