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

Unified Diff: extensions/common/constants.cc

Issue 502033003: Move ExtensionActionStorageManager out of extension_action_api.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master for CQ Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/constants.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/constants.cc
diff --git a/extensions/common/constants.cc b/extensions/common/constants.cc
index bd8e157188acf28ff5d0eb4536d4160e1c3a035e..2ce6d715fdb7859df2bdd99aad4bf1cbfd9f9fc0 100644
--- a/extensions/common/constants.cc
+++ b/extensions/common/constants.cc
@@ -4,8 +4,6 @@
#include "extensions/common/constants.h"
-#include "base/files/file_path.h"
-
namespace extensions {
const char kExtensionScheme[] = "chrome-extension";
@@ -73,11 +71,13 @@ const int kExtensionIconSizes[] = {EXTENSION_ICON_GIGANTOR, // 512
const size_t kNumExtensionIconSizes = arraysize(kExtensionIconSizes);
-const int kExtensionActionIconSizes[] = {EXTENSION_ICON_ACTION, // 19,
- 2 * EXTENSION_ICON_ACTION // 38
+const IconRepresentationInfo kExtensionActionIconSizes[] = {
+ { EXTENSION_ICON_ACTION, "19", ui::SCALE_FACTOR_100P },
+ { 2 * EXTENSION_ICON_ACTION, "38", ui::SCALE_FACTOR_200P }
};
-const size_t kNumExtensionActionIconSizes =
- arraysize(kExtensionActionIconSizes);
+COMPILE_ASSERT(kNumExtensionActionIconSizes ==
+ arraysize(kExtensionActionIconSizes),
+ num_action_icon_sizes_must_be_in_sync_with_action_icon_sizes);
} // namespace extension_misc
« no previous file with comments | « extensions/common/constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698