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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | chrome/renderer/resources/neterror.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h" 147 #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h"
148 #include "components/crash/app/breakpad_mac.h" 148 #include "components/crash/app/breakpad_mac.h"
149 #elif defined(OS_CHROMEOS) 149 #elif defined(OS_CHROMEOS)
150 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" 150 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h"
151 #include "chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.h" 151 #include "chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.h"
152 #include "chrome/browser/chromeos/file_manager/app_id.h" 152 #include "chrome/browser/chromeos/file_manager/app_id.h"
153 #include "chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate. h" 153 #include "chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate. h"
154 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" 154 #include "chrome/browser/chromeos/fileapi/file_system_backend.h"
155 #include "chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.h" 155 #include "chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.h"
156 #include "chrome/browser/chromeos/login/startup_utils.h" 156 #include "chrome/browser/chromeos/login/startup_utils.h"
157 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
157 #include "chrome/browser/chromeos/system/input_device_settings.h" 158 #include "chrome/browser/chromeos/system/input_device_settings.h"
158 #include "chromeos/chromeos_switches.h" 159 #include "chromeos/chromeos_switches.h"
159 #include "components/user_manager/user_manager.h" 160 #include "components/user_manager/user_manager.h"
160 #elif defined(OS_LINUX) 161 #elif defined(OS_LINUX)
161 #include "chrome/browser/chrome_browser_main_linux.h" 162 #include "chrome/browser/chrome_browser_main_linux.h"
162 #elif defined(OS_ANDROID) 163 #elif defined(OS_ANDROID)
163 #include "chrome/browser/android/new_tab_page_url_handler.h" 164 #include "chrome/browser/android/new_tab_page_url_handler.h"
164 #include "chrome/browser/android/service_tab_launcher.h" 165 #include "chrome/browser/android/service_tab_launcher.h"
165 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" 166 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h"
166 #include "chrome/browser/chrome_browser_main_android.h" 167 #include "chrome/browser/chrome_browser_main_android.h"
(...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after
1405 InstantServiceFactory::GetForProfile(profile); 1406 InstantServiceFactory::GetForProfile(profile);
1406 if (instant_service && 1407 if (instant_service &&
1407 instant_service->IsInstantProcess(process->GetID())) 1408 instant_service->IsInstantProcess(process->GetID()))
1408 command_line->AppendSwitch(switches::kInstantProcess); 1409 command_line->AppendSwitch(switches::kInstantProcess);
1409 1410
1410 #if !defined(OS_CHROMEOS) 1411 #if !defined(OS_CHROMEOS)
1411 SigninClient* signin_client = 1412 SigninClient* signin_client =
1412 ChromeSigninClientFactory::GetForProfile(profile); 1413 ChromeSigninClientFactory::GetForProfile(profile);
1413 if (signin_client && signin_client->IsSigninProcess(process->GetID())) 1414 if (signin_client && signin_client->IsSigninProcess(process->GetID()))
1414 command_line->AppendSwitch(switches::kSigninProcess); 1415 command_line->AppendSwitch(switches::kSigninProcess);
1416 #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.
1417 // Enterprise enrolled check to disable the easter egg.
1418 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.
1419 browser_policy_connector_chromeos()->IsEnterpriseManaged();
1420 if (isEnterpriseManaged)
1421 command_line->AppendSwitch(switches::kDisableDinosaurEasterEgg);
1415 #endif 1422 #endif
1416 } 1423 }
1417 1424
1418 if (IsAutoReloadEnabled()) 1425 if (IsAutoReloadEnabled())
1419 command_line->AppendSwitch(switches::kEnableOfflineAutoReload); 1426 command_line->AppendSwitch(switches::kEnableOfflineAutoReload);
1420 if (IsAutoReloadVisibleOnlyEnabled()) { 1427 if (IsAutoReloadVisibleOnlyEnabled()) {
1421 command_line->AppendSwitch( 1428 command_line->AppendSwitch(
1422 switches::kEnableOfflineAutoReloadVisibleOnly); 1429 switches::kEnableOfflineAutoReloadVisibleOnly);
1423 } 1430 }
1424 1431
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after
2642 switches::kDisableWebRtcEncryption, 2649 switches::kDisableWebRtcEncryption,
2643 }; 2650 };
2644 to_command_line->CopySwitchesFrom(from_command_line, 2651 to_command_line->CopySwitchesFrom(from_command_line,
2645 kWebRtcDevSwitchNames, 2652 kWebRtcDevSwitchNames,
2646 arraysize(kWebRtcDevSwitchNames)); 2653 arraysize(kWebRtcDevSwitchNames));
2647 } 2654 }
2648 } 2655 }
2649 #endif // defined(ENABLE_WEBRTC) 2656 #endif // defined(ENABLE_WEBRTC)
2650 2657
2651 } // namespace chrome 2658 } // namespace chrome
OLDNEW
« 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