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

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

Issue 1128453003: Remove the OOP PDF flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // Disables the menu on the NTP for accessing sessions from other devices. 287 // Disables the menu on the NTP for accessing sessions from other devices.
288 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; 288 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu";
289 289
290 // Disable auto-reload of error pages if offline. 290 // Disable auto-reload of error pages if offline.
291 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; 291 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload";
292 292
293 // Disable only auto-reloading error pages when the tab is visible. 293 // Disable only auto-reloading error pages when the tab is visible.
294 const char kDisableOfflineAutoReloadVisibleOnly[] = 294 const char kDisableOfflineAutoReloadVisibleOnly[] =
295 "disable-offline-auto-reload-visible-only"; 295 "disable-offline-auto-reload-visible-only";
296 296
297 // Disable the out of process PDF plugin.
298 const char kDisableOutOfProcessPdf[] = "disable-out-of-process-pdf";
299
300 // Disable the setting to prompt the user for their OS account password before 297 // Disable the setting to prompt the user for their OS account password before
301 // revealing plaintext passwords in the password manager. 298 // revealing plaintext passwords in the password manager.
302 const char kDisablePasswordManagerReauthentication[] = 299 const char kDisablePasswordManagerReauthentication[] =
303 "disable-password-manager-reauthentication"; 300 "disable-password-manager-reauthentication";
304 301
305 // Disable the new material UI - requires out of process PDF plugin. 302 // Disable the new material UI - requires out of process PDF plugin.
306 const char kDisablePdfMaterialUI[] = "disable-pdf-material-ui"; 303 const char kDisablePdfMaterialUI[] = "disable-pdf-material-ui";
307 304
308 // Don't use bubbles for content permissions requests instead of infobars. 305 // Don't use bubbles for content permissions requests instead of infobars.
309 const char kDisablePermissionsBubbles[] = "disable-permissions-bubbles"; 306 const char kDisablePermissionsBubbles[] = "disable-permissions-bubbles";
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 // HTTP is still used for all requests. 476 // HTTP is still used for all requests.
480 const char kEnableNpnHttpOnly[] = "enable-npn-http"; 477 const char kEnableNpnHttpOnly[] = "enable-npn-http";
481 478
482 // Enable auto-reload of error pages if offline. 479 // Enable auto-reload of error pages if offline.
483 const char kEnableOfflineAutoReload[] = "enable-offline-auto-reload"; 480 const char kEnableOfflineAutoReload[] = "enable-offline-auto-reload";
484 481
485 // Only auto-reload error pages when the tab is visible. 482 // Only auto-reload error pages when the tab is visible.
486 const char kEnableOfflineAutoReloadVisibleOnly[] = 483 const char kEnableOfflineAutoReloadVisibleOnly[] =
487 "enable-offline-auto-reload-visible-only"; 484 "enable-offline-auto-reload-visible-only";
488 485
489 // Enable the out of process PDF plugin.
490 const char kEnableOutOfProcessPdf[] = "enable-out-of-process-pdf";
491
492 // Enables panels (always on-top docked pop-up windows). 486 // Enables panels (always on-top docked pop-up windows).
493 const char kEnablePanels[] = "enable-panels"; 487 const char kEnablePanels[] = "enable-panels";
494 488
495 // Enable the new material UI - requires out of process PDF plugin. 489 // Enable the new material UI - requires out of process PDF plugin.
496 const char kEnablePdfMaterialUI[] = "enable-pdf-material-ui"; 490 const char kEnablePdfMaterialUI[] = "enable-pdf-material-ui";
497 491
498 // Enables presenting plugin placeholder content as shadow DOM. 492 // Enables presenting plugin placeholder content as shadow DOM.
499 const char kEnablePluginPlaceholderShadowDom[] = 493 const char kEnablePluginPlaceholderShadowDom[] =
500 "enable-plugin-placeholder-shadow-dom"; 494 "enable-plugin-placeholder-shadow-dom";
501 495
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 ::switches::kEnableMediaRouter); 1351 ::switches::kEnableMediaRouter);
1358 } 1352 }
1359 1353
1360 // Will return true as a default value if the "disable-new-offline-error-page" 1354 // Will return true as a default value if the "disable-new-offline-error-page"
1361 // command-line switch is not available. 1355 // command-line switch is not available.
1362 bool NewOfflineErrorPageEnabled() { 1356 bool NewOfflineErrorPageEnabled() {
1363 return !base::CommandLine::ForCurrentProcess()->HasSwitch( 1357 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
1364 ::switches::kDisableNewOfflineErrorPage); 1358 ::switches::kDisableNewOfflineErrorPage);
1365 } 1359 }
1366 1360
1367 bool OutOfProcessPdfEnabled() {
1368 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableOutOfProcessPdf))
1369 return true;
1370
1371 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
1372 kDisableOutOfProcessPdf))
1373 return false;
1374
1375 // Default.
1376 return true;
1377 }
1378
1379 bool PdfMaterialUIEnabled() { 1361 bool PdfMaterialUIEnabled() {
1380 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI)) 1362 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI))
1381 return true; 1363 return true;
1382 1364
1383 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI)) 1365 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI))
1384 return false; 1366 return false;
1385 1367
1386 // Default. 1368 // Default.
1387 return false; 1369 return false;
1388 } 1370 }
(...skipping 17 matching lines...) Expand all
1406 1388
1407 // ----------------------------------------------------------------------------- 1389 // -----------------------------------------------------------------------------
1408 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1390 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1409 // 1391 //
1410 // You were going to just dump your switches here, weren't you? Instead, please 1392 // You were going to just dump your switches here, weren't you? Instead, please
1411 // put them in alphabetical order above, or in order inside the appropriate 1393 // put them in alphabetical order above, or in order inside the appropriate
1412 // ifdef at the bottom. The order should match the header. 1394 // ifdef at the bottom. The order should match the header.
1413 // ----------------------------------------------------------------------------- 1395 // -----------------------------------------------------------------------------
1414 1396
1415 } // namespace switches 1397 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/renderer/printing/chrome_print_web_view_helper_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698