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

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

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