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

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

Issue 299273003: Revert 272587 "Remove kEnablePrintPreview now that the pdf plugi..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 | Annotate | Revision Log
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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 // Disables the usage of Portable Native Client. 324 // Disables the usage of Portable Native Client.
325 const char kDisablePnacl[] = "disable-pnacl"; 325 const char kDisablePnacl[] = "disable-pnacl";
326 326
327 // Disable speculative TCP/IP preconnection. 327 // Disable speculative TCP/IP preconnection.
328 const char kDisablePreconnect[] = "disable-preconnect"; 328 const char kDisablePreconnect[] = "disable-preconnect";
329 329
330 // Disable prerendering based on local browsing history. 330 // Disable prerendering based on local browsing history.
331 const char kDisablePrerenderLocalPredictor[] = 331 const char kDisablePrerenderLocalPredictor[] =
332 "disable-prerender-local-predictor"; 332 "disable-prerender-local-predictor";
333 333
334 // Disables print preview (For testing, and for users who don't like us. :[ )
335 const char kDisablePrintPreview[] = "disable-print-preview";
336
337 // Normally when the user attempts to navigate to a page that was the result of 334 // Normally when the user attempts to navigate to a page that was the result of
338 // a post we prompt to make sure they want to. This switch may be used to 335 // a post we prompt to make sure they want to. This switch may be used to
339 // disable that check. This switch is used during automated testing. 336 // disable that check. This switch is used during automated testing.
340 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; 337 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost";
341 338
342 // Disables support for the QUIC protocol. 339 // Disables support for the QUIC protocol.
343 const char kDisableQuic[] = "disable-quic"; 340 const char kDisableQuic[] = "disable-quic";
344 341
345 // Disables support for the HTTPS over QUIC protocol. This is a temporary 342 // Disables support for the HTTPS over QUIC protocol. This is a temporary
346 // testing flag. This only has an effect if QUIC protocol is enabled. 343 // testing flag. This only has an effect if QUIC protocol is enabled.
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after
1405 #if defined(ENABLE_FULL_PRINTING) && !defined(OFFICIAL_BUILD) 1402 #if defined(ENABLE_FULL_PRINTING) && !defined(OFFICIAL_BUILD)
1406 // Enables support to debug printing subsystem. 1403 // Enables support to debug printing subsystem.
1407 const char kDebugPrint[] = "debug-print"; 1404 const char kDebugPrint[] = "debug-print";
1408 #endif 1405 #endif
1409 1406
1410 #ifndef NDEBUG 1407 #ifndef NDEBUG
1411 // Enables overriding the path of file manager extension. 1408 // Enables overriding the path of file manager extension.
1412 const char kFileManagerExtensionPath[] = "filemgr-ext-path"; 1409 const char kFileManagerExtensionPath[] = "filemgr-ext-path";
1413 #endif 1410 #endif
1414 1411
1412 // Controls print preview in the browser process.
1413 #if defined(GOOGLE_CHROME_BUILD)
1414 // Disables print preview (For testing, and for users who don't like us. :[ )
1415 const char kDisablePrintPreview[] = "disable-print-preview";
1416 #else
1417 // Enables print preview. Chromium normally does not have the PDF viewer,
1418 // required for print preview.
1419 // pdf.dll or libpdf.so should be present in primary directory of
1420 // Chromium. For local builds it's usually out/Debug or out/Release.
1421 const char kEnablePrintPreview[] = "enable-print-preview";
1422 #endif
1423
1415 // ----------------------------------------------------------------------------- 1424 // -----------------------------------------------------------------------------
1416 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1425 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1417 // 1426 //
1418 // You were going to just dump your switches here, weren't you? Instead, please 1427 // You were going to just dump your switches here, weren't you? Instead, please
1419 // put them in alphabetical order above, or in order inside the appropriate 1428 // put them in alphabetical order above, or in order inside the appropriate
1420 // ifdef at the bottom. The order should match the header. 1429 // ifdef at the bottom. The order should match the header.
1421 // ----------------------------------------------------------------------------- 1430 // -----------------------------------------------------------------------------
1422 1431
1423 } // namespace switches 1432 } // namespace switches
OLDNEW
« no previous file with comments | « trunk/src/chrome/common/chrome_switches.h ('k') | trunk/src/chrome/test/data/webui/print_preview.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698