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

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

Issue 8889022: Attempt 2 at : Makes tests either use mock compositor or mock (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/test/base/chrome_test_suite.cc » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after
1279 // Disables print preview (Not exposed via about:flags. Only used for testing.) 1279 // Disables print preview (Not exposed via about:flags. Only used for testing.)
1280 const char kDisablePrintPreview[] = "disable-print-preview"; 1280 const char kDisablePrintPreview[] = "disable-print-preview";
1281 1281
1282 // Enables print preview (no PDF viewer, thus not supported with Chromium). 1282 // Enables print preview (no PDF viewer, thus not supported with Chromium).
1283 // kDisablePrintPreview overrides this. 1283 // kDisablePrintPreview overrides this.
1284 const char kEnablePrintPreview[] = "enable-print-preview"; 1284 const char kEnablePrintPreview[] = "enable-print-preview";
1285 1285
1286 // Enables the benchmarking extensions. 1286 // Enables the benchmarking extensions.
1287 const char kEnableBenchmarking[] = "enable-benchmarking"; 1287 const char kEnableBenchmarking[] = "enable-benchmarking";
1288 1288
1289 #if defined(USE_AURA)
1290 // Forces usage of the test compositor. Needed to run ui tests on bots.
1291 extern const char kTestCompositor[] = "test-compositor";
1292 #endif
1293
1289 bool IsPrintPreviewEnabled() { 1294 bool IsPrintPreviewEnabled() {
1290 if (CommandLine::ForCurrentProcess()->HasSwitch(kDisablePrintPreview)) 1295 if (CommandLine::ForCurrentProcess()->HasSwitch(kDisablePrintPreview))
1291 return false; 1296 return false;
1292 return CommandLine::ForCurrentProcess()->HasSwitch(kEnablePrintPreview); 1297 return CommandLine::ForCurrentProcess()->HasSwitch(kEnablePrintPreview);
1293 } 1298 }
1294 1299
1295 bool IsInBrowserThumbnailingEnabled() { 1300 bool IsInBrowserThumbnailingEnabled() {
1296 return CommandLine::ForCurrentProcess()->HasSwitch( 1301 return CommandLine::ForCurrentProcess()->HasSwitch(
1297 kEnableInBrowserThumbnailing); 1302 kEnableInBrowserThumbnailing);
1298 } 1303 }
1299 1304
1300 // ----------------------------------------------------------------------------- 1305 // -----------------------------------------------------------------------------
1301 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1306 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1302 // 1307 //
1303 // You were going to just dump your switches here, weren't you? Instead, please 1308 // You were going to just dump your switches here, weren't you? Instead, please
1304 // put them in alphabetical order above, or in order inside the appropriate 1309 // put them in alphabetical order above, or in order inside the appropriate
1305 // ifdef at the bottom. The order should match the header. 1310 // ifdef at the bottom. The order should match the header.
1306 // ----------------------------------------------------------------------------- 1311 // -----------------------------------------------------------------------------
1307 1312
1308 } // namespace switches 1313 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/test/base/chrome_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698