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

Unified Diff: chrome/utility/chrome_content_utility_client.cc

Issue 12093036: Move Extension Location and Type enums to Manifest, and move InstallWarning to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/extensions/dispatcher.cc ('k') | extensions/common/install_warning.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/chrome_content_utility_client.cc
diff --git a/chrome/utility/chrome_content_utility_client.cc b/chrome/utility/chrome_content_utility_client.cc
index 5d1fa2315d145ed148e3d178f9448869d789344b..411b882c6eb814d97bfadcbc97a01824a9ba84e8 100644
--- a/chrome/utility/chrome_content_utility_client.cc
+++ b/chrome/utility/chrome_content_utility_client.cc
@@ -22,6 +22,7 @@
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_l10n_util.h"
#include "chrome/common/extensions/extension_manifest_constants.h"
+#include "chrome/common/extensions/manifest.h"
#include "chrome/common/extensions/manifest_handler.h"
#include "chrome/common/extensions/unpacker.h"
#include "chrome/common/extensions/update_manifest.h"
@@ -132,13 +133,13 @@ void ChromeContentUtilityClient::OnUnpackExtension(
const std::string& extension_id,
int location,
int creation_flags) {
- CHECK(location > extensions::Extension::INVALID);
- CHECK(location < extensions::Extension::NUM_LOCATIONS);
+ CHECK(location > extensions::Manifest::INVALID_LOCATION);
+ CHECK(location < extensions::Manifest::NUM_LOCATIONS);
RegisterExtensionManifestHandlers();
extensions::Unpacker unpacker(
extension_path,
extension_id,
- static_cast<extensions::Extension::Location>(location),
+ static_cast<extensions::Manifest::Location>(location),
creation_flags);
if (unpacker.Run() && unpacker.DumpImagesToFile() &&
unpacker.DumpMessageCatalogsToFile()) {
« no previous file with comments | « chrome/renderer/extensions/dispatcher.cc ('k') | extensions/common/install_warning.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698