Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: chrome/browser/android/tab_android.cc

Issue 63423003: Set ENABLE_MANAGED_USERS #ifdef on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/managed_mode/managed_mode_navigation_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/managed_mode/managed_mode_navigation_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698