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

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

Issue 850633002: Enable the OOP PDF viewer as the default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1359 1359
1360 bool OutOfProcessPdfEnabled() { 1360 bool OutOfProcessPdfEnabled() {
1361 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableOutOfProcessPdf)) 1361 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableOutOfProcessPdf))
1362 return true; 1362 return true;
1363 1363
1364 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 1364 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
1365 kDisableOutOfProcessPdf)) 1365 kDisableOutOfProcessPdf))
1366 return false; 1366 return false;
1367 1367
1368 // Default. 1368 // Default.
1369 return false; 1369 return true;
1370 } 1370 }
1371 1371
1372 bool PdfMaterialUIEnabled() { 1372 bool PdfMaterialUIEnabled() {
1373 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI)) 1373 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI))
1374 return true; 1374 return true;
1375 1375
1376 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI)) 1376 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI))
1377 return false; 1377 return false;
1378 1378
1379 // Default. 1379 // Default.
1380 return true; 1380 return false;
1381 } 1381 }
1382 1382
1383 bool SettingsWindowEnabled() { 1383 bool SettingsWindowEnabled() {
1384 #if defined(OS_CHROMEOS) 1384 #if defined(OS_CHROMEOS)
1385 return !base::CommandLine::ForCurrentProcess()->HasSwitch( 1385 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
1386 ::switches::kDisableSettingsWindow); 1386 ::switches::kDisableSettingsWindow);
1387 #else 1387 #else
1388 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1388 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1389 ::switches::kEnableSettingsWindow); 1389 ::switches::kEnableSettingsWindow);
1390 #endif 1390 #endif
1391 } 1391 }
1392 1392
1393 #if defined(OS_CHROMEOS) 1393 #if defined(OS_CHROMEOS)
1394 bool PowerOverlayEnabled() { 1394 bool PowerOverlayEnabled() {
1395 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1395 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1396 ::switches::kEnablePowerOverlay); 1396 ::switches::kEnablePowerOverlay);
1397 } 1397 }
1398 #endif 1398 #endif
1399 1399
1400 // ----------------------------------------------------------------------------- 1400 // -----------------------------------------------------------------------------
1401 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1401 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1402 // 1402 //
1403 // You were going to just dump your switches here, weren't you? Instead, please 1403 // You were going to just dump your switches here, weren't you? Instead, please
1404 // put them in alphabetical order above, or in order inside the appropriate 1404 // put them in alphabetical order above, or in order inside the appropriate
1405 // ifdef at the bottom. The order should match the header. 1405 // ifdef at the bottom. The order should match the header.
1406 // ----------------------------------------------------------------------------- 1406 // -----------------------------------------------------------------------------
1407 1407
1408 } // namespace switches 1408 } // 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