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

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

Issue 829583002: Validate hash_sha256 checksum on .crx update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add histogram description. Created 5 years, 11 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 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 // A string used to override the default user agent with a custom one. 1216 // A string used to override the default user agent with a custom one.
1217 const char kUserAgent[] = "user-agent"; 1217 const char kUserAgent[] = "user-agent";
1218 1218
1219 // Specifies the user data directory, which is where the browser will look for 1219 // Specifies the user data directory, which is where the browser will look for
1220 // all of its state. 1220 // all of its state.
1221 const char kUserDataDir[] = "user-data-dir"; 1221 const char kUserDataDir[] = "user-data-dir";
1222 1222
1223 // Examines a .crx for validity and prints the result. 1223 // Examines a .crx for validity and prints the result.
1224 const char kValidateCrx[] = "validate-crx"; 1224 const char kValidateCrx[] = "validate-crx";
1225 1225
1226 // Checks a .crx file's hash sum.
1227 const char kValidateCrxHash[] = "validate-crx-hash";
1228
1226 // Uses experimental simple cache backend if possible. 1229 // Uses experimental simple cache backend if possible.
1227 const char kUseSimpleCacheBackend[] = "use-simple-cache-backend"; 1230 const char kUseSimpleCacheBackend[] = "use-simple-cache-backend";
1228 1231
1229 // Specifies a custom URL for the server which reports variation data to the 1232 // Specifies a custom URL for the server which reports variation data to the
1230 // client. Specifying this switch enables the Variations service on 1233 // client. Specifying this switch enables the Variations service on
1231 // unofficial builds. See variations_service.cc. 1234 // unofficial builds. See variations_service.cc.
1232 const char kVariationsServerURL[] = "variations-server-url"; 1235 const char kVariationsServerURL[] = "variations-server-url";
1233 1236
1234 // Prints version information and quits. 1237 // Prints version information and quits.
1235 const char kVersion[] = "version"; 1238 const char kVersion[] = "version";
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
1408 1411
1409 // ----------------------------------------------------------------------------- 1412 // -----------------------------------------------------------------------------
1410 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1413 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1411 // 1414 //
1412 // You were going to just dump your switches here, weren't you? Instead, please 1415 // You were going to just dump your switches here, weren't you? Instead, please
1413 // put them in alphabetical order above, or in order inside the appropriate 1416 // put them in alphabetical order above, or in order inside the appropriate
1414 // ifdef at the bottom. The order should match the header. 1417 // ifdef at the bottom. The order should match the header.
1415 // ----------------------------------------------------------------------------- 1418 // -----------------------------------------------------------------------------
1416 1419
1417 } // namespace switches 1420 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698