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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_login_handler.cc

Issue 9500003: Add a button to exit managed mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 8 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
Index: chrome/browser/ui/webui/ntp/ntp_login_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/ntp_login_handler.cc b/chrome/browser/ui/webui/ntp/ntp_login_handler.cc
index b349d052d2d8578bc189c4d68987a768b9ce7a29..9530ec7fca833ebc9e2d4f02525dc646db6e23bc 100644
--- a/chrome/browser/ui/webui/ntp/ntp_login_handler.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_login_handler.cc
@@ -12,6 +12,7 @@
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/managed_mode.h"
#include "chrome/browser/prefs/pref_notifier.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
@@ -137,7 +138,8 @@ void NTPLoginHandler::HandleShowSyncLoginUI(const ListValue* args) {
RecordInHistogram(NTP_SIGN_IN_PROMO_CLICKED);
}
#endif
- } else if (args->GetSize() == 4) {
+ } else if (args->GetSize() == 4 &&
+ !ManagedMode::IsInManagedMode()) {
sail 2012/04/25 18:02:46 I don't think this is a good way to disable the pr
Bernhard Bauer 2012/04/26 16:46:15 Good idea. Done.
// The user is signed in, show the profiles menu.
double x = 0;
double y = 0;

Powered by Google App Engine
This is Rietveld 408576698