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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 977323003: Disable easter egg on enterprised enrolled devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove chrome/browser/errorpage_browsertest.cc Created 5 years, 9 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/errorpage_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index f7c3c618d8c8ecbcf10cbc566c92548eba06dde1..6958512baf3307de48b24e6da12488d1713755bc 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -154,6 +154,7 @@
#include "chrome/browser/chromeos/fileapi/file_system_backend.h"
#include "chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.h"
#include "chrome/browser/chromeos/login/startup_utils.h"
+#include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
#include "chrome/browser/chromeos/system/input_device_settings.h"
#include "chromeos/chromeos_switches.h"
#include "components/user_manager/user_manager.h"
@@ -1406,7 +1407,13 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
instant_service->IsInstantProcess(process->GetID()))
command_line->AppendSwitch(switches::kInstantProcess);
-#if !defined(OS_CHROMEOS)
+#if defined(OS_CHROMEOS)
+ // Enterprise enrolled check to disable the easter egg.
sky 2015/03/18 20:56:52 Can you do this in chromeos specific startup code?
edwardjung 2015/03/19 10:38:48 I'm not sure, this was the method suggested by atw
sky 2015/03/19 19:26:13 I was specifically thinking of something like brow
edwardjung 2015/03/20 17:36:40 I tried this and although the flag is set on start
Andrew T Wilson (Slow) 2015/03/20 19:33:04 You probably have to call CopySwitchesFrom() expli
edwardjung 2015/03/23 13:17:15 Done. Thanks Drew. @sky, moved this check to br
+ const bool is_enterprise_managed = g_browser_process->platform_part()->
+ browser_policy_connector_chromeos()->IsEnterpriseManaged();
+ if (is_enterprise_managed)
+ command_line->AppendSwitch(switches::kDisableDinosaurEasterEgg);
+#else
SigninClient* signin_client =
ChromeSigninClientFactory::GetForProfile(profile);
if (signin_client && signin_client->IsSigninProcess(process->GetID()))
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/errorpage_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698