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

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

Issue 1310523003: Enable Material PDF by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1383 } 1383 }
1384 1384
1385 bool PdfMaterialUIEnabled() { 1385 bool PdfMaterialUIEnabled() {
1386 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI)) 1386 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI))
1387 return true; 1387 return true;
1388 1388
1389 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI)) 1389 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI))
1390 return false; 1390 return false;
1391 1391
1392 // Default. 1392 // Default.
1393 return false; 1393 return true;
1394 } 1394 }
1395 1395
1396 bool SettingsWindowEnabled() { 1396 bool SettingsWindowEnabled() {
1397 #if defined(OS_CHROMEOS) 1397 #if defined(OS_CHROMEOS)
1398 return !base::CommandLine::ForCurrentProcess()->HasSwitch( 1398 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
1399 ::switches::kDisableSettingsWindow); 1399 ::switches::kDisableSettingsWindow);
1400 #else 1400 #else
1401 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1401 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1402 ::switches::kEnableSettingsWindow); 1402 ::switches::kEnableSettingsWindow);
1403 #endif 1403 #endif
(...skipping 15 matching lines...) Expand all
1419 1419
1420 // ----------------------------------------------------------------------------- 1420 // -----------------------------------------------------------------------------
1421 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1421 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1422 // 1422 //
1423 // You were going to just dump your switches here, weren't you? Instead, please 1423 // You were going to just dump your switches here, weren't you? Instead, please
1424 // put them in alphabetical order above, or in order inside the appropriate 1424 // put them in alphabetical order above, or in order inside the appropriate
1425 // ifdef at the bottom. The order should match the header. 1425 // ifdef at the bottom. The order should match the header.
1426 // ----------------------------------------------------------------------------- 1426 // -----------------------------------------------------------------------------
1427 1427
1428 } // namespace switches 1428 } // 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