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

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: 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 | « no previous file | chrome/common/chrome_switches.h » ('j') | chrome/renderer/resources/neterror.js » ('J')
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 e821dfbdd0562b6c8f74c43ffb63da994919718d..a20ef923520669f0ec81825aa3e8831793da2201 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"
@@ -1412,6 +1413,12 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
ChromeSigninClientFactory::GetForProfile(profile);
if (signin_client && signin_client->IsSigninProcess(process->GetID()))
command_line->AppendSwitch(switches::kSigninProcess);
+#else
Andrew T Wilson (Slow) 2015/03/10 15:31:57 nit: I prefer a positive check (#if defined(OS_CHR
edwardjung 2015/03/10 18:12:28 Done.
+ // Enterprise enrolled check to disable the easter egg.
+ bool isEnterpriseManaged = g_browser_process->platform_part()->
Andrew T Wilson (Slow) 2015/03/10 15:31:58 nit: bool isEnterpriseManaged -> const bool is_ent
edwardjung 2015/03/10 18:12:28 Done.
+ browser_policy_connector_chromeos()->IsEnterpriseManaged();
+ if (isEnterpriseManaged)
+ command_line->AppendSwitch(switches::kDisableDinosaurEasterEgg);
#endif
}
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | chrome/renderer/resources/neterror.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698