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

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

Issue 1902293002: Add MD Feedback switch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per mfoltz@'s comments. Created 4 years, 8 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 | « chrome/common/chrome_switches.h ('k') | tools/metrics/histograms/histograms.xml » ('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) 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 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 417
418 #if defined(GOOGLE_CHROME_BUILD) 418 #if defined(GOOGLE_CHROME_BUILD)
419 // Shows a Google icon next to context menu items powered by Google services. 419 // Shows a Google icon next to context menu items powered by Google services.
420 const char kEnableGoogleBrandedContextMenu[] = 420 const char kEnableGoogleBrandedContextMenu[] =
421 "enable-google-branded-context-menu"; 421 "enable-google-branded-context-menu";
422 #endif // defined(GOOGLE_CHROME_BUILD) 422 #endif // defined(GOOGLE_CHROME_BUILD)
423 423
424 // Enables the Material Design version of chrome://extensions. 424 // Enables the Material Design version of chrome://extensions.
425 const char kEnableMaterialDesignExtensions[] = "enable-md-extensions"; 425 const char kEnableMaterialDesignExtensions[] = "enable-md-extensions";
426 426
427 // Enables the Material Design feedback form.
428 const char kEnableMaterialDesignFeedback[] = "enable-md-feedback";
429
427 // Enables the Material Design policy page at chrome://md-policy. 430 // Enables the Material Design policy page at chrome://md-policy.
428 const char kEnableMaterialDesignPolicyPage[] = "enable-md-policy-page"; 431 const char kEnableMaterialDesignPolicyPage[] = "enable-md-policy-page";
429 432
430 // Runs the Native Client inside the renderer process and enables GPU plugin 433 // Runs the Native Client inside the renderer process and enables GPU plugin
431 // (internally adds lEnableGpuPlugin to the command line). 434 // (internally adds lEnableGpuPlugin to the command line).
432 const char kEnableNaCl[] = "enable-nacl"; 435 const char kEnableNaCl[] = "enable-nacl";
433 436
434 // Enables the use of native notifications instead of using the Chrome based 437 // Enables the use of native notifications instead of using the Chrome based
435 // ones. 438 // ones.
436 const char kEnableNativeNotifications[] = "enable-native-notifications"; 439 const char kEnableNativeNotifications[] = "enable-native-notifications";
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 return SettingsWindowEnabled() && 1305 return SettingsWindowEnabled() &&
1303 !base::CommandLine::ForCurrentProcess()->HasSwitch( 1306 !base::CommandLine::ForCurrentProcess()->HasSwitch(
1304 ::switches::kDisableAboutInSettings); 1307 ::switches::kDisableAboutInSettings);
1305 } 1308 }
1306 1309
1307 bool MdExtensionsEnabled() { 1310 bool MdExtensionsEnabled() {
1308 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1311 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1309 ::switches::kEnableMaterialDesignExtensions); 1312 ::switches::kEnableMaterialDesignExtensions);
1310 } 1313 }
1311 1314
1315 bool MdFeedbackEnabled() {
1316 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1317 ::switches::kEnableMaterialDesignFeedback);
1318 }
1319
1312 bool MdPolicyPageEnabled() { 1320 bool MdPolicyPageEnabled() {
1313 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1321 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1314 ::switches::kEnableMaterialDesignPolicyPage); 1322 ::switches::kEnableMaterialDesignPolicyPage);
1315 } 1323 }
1316 1324
1317 bool SettingsWindowEnabled() { 1325 bool SettingsWindowEnabled() {
1318 #if defined(OS_CHROMEOS) 1326 #if defined(OS_CHROMEOS)
1319 return !base::CommandLine::ForCurrentProcess()->HasSwitch( 1327 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
1320 ::switches::kDisableSettingsWindow); 1328 ::switches::kDisableSettingsWindow);
1321 #else 1329 #else
(...skipping 22 matching lines...) Expand all
1344 1352
1345 // ----------------------------------------------------------------------------- 1353 // -----------------------------------------------------------------------------
1346 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1354 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1347 // 1355 //
1348 // You were going to just dump your switches here, weren't you? Instead, please 1356 // You were going to just dump your switches here, weren't you? Instead, please
1349 // put them in alphabetical order above, or in order inside the appropriate 1357 // put them in alphabetical order above, or in order inside the appropriate
1350 // ifdef at the bottom. The order should match the header. 1358 // ifdef at the bottom. The order should match the header.
1351 // ----------------------------------------------------------------------------- 1359 // -----------------------------------------------------------------------------
1352 1360
1353 } // namespace switches 1361 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698