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

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 1316043003: Add chrome://site-engagement WebUI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@navigation_smarter
Patch Set: fix build more Created 5 years, 3 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
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/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 9
10 namespace switches { 10 namespace switches {
(...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 bool SettingsWindowEnabled() { 1399 bool SettingsWindowEnabled() {
1400 #if defined(OS_CHROMEOS) 1400 #if defined(OS_CHROMEOS)
1401 return !base::CommandLine::ForCurrentProcess()->HasSwitch( 1401 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
1402 ::switches::kDisableSettingsWindow); 1402 ::switches::kDisableSettingsWindow);
1403 #else 1403 #else
1404 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1404 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1405 ::switches::kEnableSettingsWindow); 1405 ::switches::kEnableSettingsWindow);
1406 #endif 1406 #endif
1407 } 1407 }
1408 1408
1409 bool SiteEngagementServiceEnabled() {
1410 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1411 kEnableSiteEngagementService);
1412 }
1413
1409 #if defined(OS_CHROMEOS) 1414 #if defined(OS_CHROMEOS)
1410 bool PowerOverlayEnabled() { 1415 bool PowerOverlayEnabled() {
1411 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1416 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1412 ::switches::kEnablePowerOverlay); 1417 ::switches::kEnablePowerOverlay);
1413 } 1418 }
1414 #endif 1419 #endif
1415 1420
1416 #if defined(ENABLE_TASK_MANAGER) 1421 #if defined(ENABLE_TASK_MANAGER)
1417 bool NewTaskManagerEnabled() { 1422 bool NewTaskManagerEnabled() {
1418 return !base::CommandLine::ForCurrentProcess()->HasSwitch( 1423 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
1419 kDisableNewTaskManager); 1424 kDisableNewTaskManager);
1420 } 1425 }
1421 #endif // defined(ENABLE_TASK_MANAGER) 1426 #endif // defined(ENABLE_TASK_MANAGER)
1422 1427
1423 // ----------------------------------------------------------------------------- 1428 // -----------------------------------------------------------------------------
1424 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1429 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1425 // 1430 //
1426 // You were going to just dump your switches here, weren't you? Instead, please 1431 // You were going to just dump your switches here, weren't you? Instead, please
1427 // put them in alphabetical order above, or in order inside the appropriate 1432 // put them in alphabetical order above, or in order inside the appropriate
1428 // ifdef at the bottom. The order should match the header. 1433 // ifdef at the bottom. The order should match the header.
1429 // ----------------------------------------------------------------------------- 1434 // -----------------------------------------------------------------------------
1430 1435
1431 } // namespace switches 1436 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698