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

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

Issue 19733003: Implement cloud policy invalidations using the invalidation service framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // version cannot be loaded, Chrome will exit. 157 // version cannot be loaded, Chrome will exit.
158 const char kChromeVersion[] = "chrome-version"; 158 const char kChromeVersion[] = "chrome-version";
159 159
160 // Comma-separated list of SSL cipher suites to disable. 160 // Comma-separated list of SSL cipher suites to disable.
161 const char kCipherSuiteBlacklist[] = "cipher-suite-blacklist"; 161 const char kCipherSuiteBlacklist[] = "cipher-suite-blacklist";
162 162
163 // Clears the token service before using it. This allows simulating the 163 // Clears the token service before using it. This allows simulating the
164 // expiration of credentials during testing. 164 // expiration of credentials during testing.
165 const char kClearTokenService[] = "clear-token-service"; 165 const char kClearTokenService[] = "clear-token-service";
166 166
167 // The maximum amount of delay in ms between receiving a cloud policy
168 // invalidation and fetching the policy. A random delay up to this value is used
169 // to prevent Chrome clients from overwhelming the cloud policy server when a
170 // policy which affects many users is changed.
171 const char kCloudPolicyInvalidationDelay[] = "cloud-policy-invalidation-delay";
172
167 // Used with kCloudPrintFile. Tells Chrome to delete the file when finished 173 // Used with kCloudPrintFile. Tells Chrome to delete the file when finished
168 // displaying the print dialog. 174 // displaying the print dialog.
169 const char kCloudPrintDeleteFile[] = "cloud-print-delete-file"; 175 const char kCloudPrintDeleteFile[] = "cloud-print-delete-file";
170 176
171 // Tells chrome to display the cloud print dialog and upload the specified file 177 // Tells chrome to display the cloud print dialog and upload the specified file
172 // for printing. 178 // for printing.
173 const char kCloudPrintFile[] = "cloud-print-file"; 179 const char kCloudPrintFile[] = "cloud-print-file";
174 180
175 // Specifies the mime type to be used when uploading data from the file 181 // Specifies the mime type to be used when uploading data from the file
176 // referenced by cloud-print-file. Defaults to "application/pdf" if 182 // referenced by cloud-print-file. Defaults to "application/pdf" if
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 // browser's cookie jar is pre-filled with GAIA cookies. When the user visits a 516 // browser's cookie jar is pre-filled with GAIA cookies. When the user visits a
511 // GAIA login page, an info bar can help the user login. 517 // GAIA login page, an info bar can help the user login.
512 const char kEnableAutologin[] = "enable-autologin"; 518 const char kEnableAutologin[] = "enable-autologin";
513 519
514 // Enables the benchmarking extensions. 520 // Enables the benchmarking extensions.
515 const char kEnableBenchmarking[] = "enable-benchmarking"; 521 const char kEnableBenchmarking[] = "enable-benchmarking";
516 522
517 // Enables a sync promo that is displayed in the bookmark bubble. 523 // Enables a sync promo that is displayed in the bookmark bubble.
518 const char kEnableBookmarkSyncPromo[] = "enable-bookmark-sync-promo"; 524 const char kEnableBookmarkSyncPromo[] = "enable-bookmark-sync-promo";
519 525
526 // Enables pushing cloud policy to Chrome using an invalidation service.
527 const char kEnableCloudPolicyPush[] = "enable-cloud-policy-push";
528
520 // This applies only when the process type is "service". Enables the Cloud 529 // This applies only when the process type is "service". Enables the Cloud
521 // Print Proxy component within the service process. 530 // Print Proxy component within the service process.
522 const char kEnableCloudPrintProxy[] = "enable-cloud-print-proxy"; 531 const char kEnableCloudPrintProxy[] = "enable-cloud-print-proxy";
523 532
524 // Enables fetching and storing cloud policy for components. This currently 533 // Enables fetching and storing cloud policy for components. This currently
525 // supports policy for extensions on Chrome OS. 534 // supports policy for extensions on Chrome OS.
526 const char kEnableComponentCloudPolicy[] = "enable-component-cloud-policy"; 535 const char kEnableComponentCloudPolicy[] = "enable-component-cloud-policy";
527 536
528 // Enables fetching the user's contacts from Google and showing them in the 537 // Enables fetching the user's contacts from Google and showing them in the
529 // Chrome OS apps list. 538 // Chrome OS apps list.
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 1587
1579 // ----------------------------------------------------------------------------- 1588 // -----------------------------------------------------------------------------
1580 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1589 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1581 // 1590 //
1582 // You were going to just dump your switches here, weren't you? Instead, please 1591 // You were going to just dump your switches here, weren't you? Instead, please
1583 // put them in alphabetical order above, or in order inside the appropriate 1592 // put them in alphabetical order above, or in order inside the appropriate
1584 // ifdef at the bottom. The order should match the header. 1593 // ifdef at the bottom. The order should match the header.
1585 // ----------------------------------------------------------------------------- 1594 // -----------------------------------------------------------------------------
1586 1595
1587 } // namespace switches 1596 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698