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

Side by Side Diff: chrome/common/extensions/api/webstore/webstore_api_constants.cc

Issue 812503003: replace COMPILE_ASSERT with static_assert in chrome/common/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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/crash_keys.cc ('k') | chrome/common/mac/launchd.mm » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/extensions/api/webstore/webstore_api_constants.h" 5 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "chrome/common/extensions/webstore_install_result.h" 8 #include "chrome/common/extensions/webstore_install_result.h"
9 9
10 namespace extensions { 10 namespace extensions {
(...skipping 17 matching lines...) Expand all
28 "userCancelled", 28 "userCancelled",
29 "blacklisted", 29 "blacklisted",
30 "missingDependencies", 30 "missingDependencies",
31 "requirementViolations", 31 "requirementViolations",
32 "blockedByPolicy", 32 "blockedByPolicy",
33 "launchFeatureDisabled", 33 "launchFeatureDisabled",
34 "launchUnsupportedExtensionType", 34 "launchUnsupportedExtensionType",
35 "launchInProgress", 35 "launchInProgress",
36 }; 36 };
37 37
38 COMPILE_ASSERT(arraysize(kInstallResultCodes) == 38 static_assert(arraysize(kInstallResultCodes) ==
39 webstore_install::RESULT_LAST + 1, 39 webstore_install::RESULT_LAST + 1,
40 must_keep_webstore_install_result_and_api_constants_in_sync); 40 "kInstallResultCodes should equal RESULT_LAST + 1");
41 41
42 // The "downloading" stage begins when the installer starts downloading modules 42 // The "downloading" stage begins when the installer starts downloading modules
43 // for the extension. 43 // for the extension.
44 const char kInstallStageDownloading[] = "downloading"; 44 const char kInstallStageDownloading[] = "downloading";
45 45
46 // The "installing" stage begins once all downloads are complete, and the 46 // The "installing" stage begins once all downloads are complete, and the
47 // CrxInstaller begins. 47 // CrxInstaller begins.
48 const char kInstallStageInstalling[] = "installing"; 48 const char kInstallStageInstalling[] = "installing";
49 49
50 // The method in custom_webstore_bindings.js triggered when we enter a new 50 // The method in custom_webstore_bindings.js triggered when we enter a new
51 // install stage ("downloading" or "installing"). 51 // install stage ("downloading" or "installing").
52 const char kOnInstallStageChangedMethodName[] = "onInstallStageChanged"; 52 const char kOnInstallStageChangedMethodName[] = "onInstallStageChanged";
53 53
54 // The method in custom_webstore_bindings.js triggered when we update 54 // The method in custom_webstore_bindings.js triggered when we update
55 // download progress. 55 // download progress.
56 const char kOnDownloadProgressMethodName[] = "onDownloadProgress"; 56 const char kOnDownloadProgressMethodName[] = "onDownloadProgress";
57 57
58 } // namespace webstore 58 } // namespace webstore
59 } // namespace api 59 } // namespace api
60 } // namespace extensions 60 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/crash_keys.cc ('k') | chrome/common/mac/launchd.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698