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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 10542023: Disable modifying extensions when in managed mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fixed Evan's nits Created 8 years, 6 months 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 | « chrome/app/generated_resources.grd ('k') | chrome/browser/extensions/extension_managed_mode_apitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
===================================================================
--- chrome/browser/chrome_browser_main.cc (revision 142678)
+++ chrome/browser/chrome_browser_main.cc (working copy)
@@ -48,6 +48,7 @@
#include "chrome/browser/gpu_util.h"
#include "chrome/browser/jankometer.h"
#include "chrome/browser/language_usage_metrics.h"
+#include "chrome/browser/managed_mode.h"
#include "chrome/browser/metrics/field_trial_synchronizer.h"
#include "chrome/browser/metrics/histogram_synchronizer.h"
#include "chrome/browser/metrics/metrics_log.h"
@@ -1621,7 +1622,10 @@
translate_manager_ = TranslateManager::GetInstance();
DCHECK(translate_manager_ != NULL);
- // TODO(stevenjb): Move WIN and MACOSX specific code to apprpriate Parts.
+ // Initialize Managed Mode.
+ ManagedMode::Init(profile_);
+
+ // TODO(stevenjb): Move WIN and MACOSX specific code to appropriate Parts.
// (requires supporting early exit).
PostProfileInit();
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/extensions/extension_managed_mode_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698