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

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

Issue 1219063014: Guard usage of kEnableMediaRouter with ENABLE_MEDIA_ROUTER (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | no next file » | no next file with comments »
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/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 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after
1327 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1327 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1328 ::switches::kEnableMaterialDesignDownloads); 1328 ::switches::kEnableMaterialDesignDownloads);
1329 } 1329 }
1330 1330
1331 bool MdSettingsEnabled() { 1331 bool MdSettingsEnabled() {
1332 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1332 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1333 ::switches::kEnableMaterialDesignSettings); 1333 ::switches::kEnableMaterialDesignSettings);
1334 } 1334 }
1335 1335
1336 bool MediaRouterEnabled() { 1336 bool MediaRouterEnabled() {
1337 #if defined(ENABLE_MEDIA_ROUTER)
1337 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1338 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1338 ::switches::kEnableMediaRouter); 1339 ::switches::kEnableMediaRouter);
1340 #else
1341 return false;
1342 #endif
1339 } 1343 }
1340 1344
1341 // Will return true as a default value if the "disable-new-offline-error-page" 1345 // Will return true as a default value if the "disable-new-offline-error-page"
1342 // command-line switch is not available. 1346 // command-line switch is not available.
1343 bool NewOfflineErrorPageEnabled() { 1347 bool NewOfflineErrorPageEnabled() {
1344 return !base::CommandLine::ForCurrentProcess()->HasSwitch( 1348 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
1345 ::switches::kDisableNewOfflineErrorPage); 1349 ::switches::kDisableNewOfflineErrorPage);
1346 } 1350 }
1347 1351
1348 bool PdfMaterialUIEnabled() { 1352 bool PdfMaterialUIEnabled() {
(...skipping 26 matching lines...) Expand all
1375 1379
1376 // ----------------------------------------------------------------------------- 1380 // -----------------------------------------------------------------------------
1377 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1381 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1378 // 1382 //
1379 // You were going to just dump your switches here, weren't you? Instead, please 1383 // You were going to just dump your switches here, weren't you? Instead, please
1380 // put them in alphabetical order above, or in order inside the appropriate 1384 // put them in alphabetical order above, or in order inside the appropriate
1381 // ifdef at the bottom. The order should match the header. 1385 // ifdef at the bottom. The order should match the header.
1382 // ----------------------------------------------------------------------------- 1386 // -----------------------------------------------------------------------------
1383 1387
1384 } // namespace switches 1388 } // namespace switches
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698