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

Unified Diff: chrome/browser/extensions/installed_loader.cc

Issue 22794012: Rename extension_manifest_keys namespace to extensions::manifest_keys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/installed_loader.cc
diff --git a/chrome/browser/extensions/installed_loader.cc b/chrome/browser/extensions/installed_loader.cc
index 62940e12207f12c81883d7b80408cc40953b225c..8927c45bf8fcc4c16229cc9b9ebacad47d88d7d7 100644
--- a/chrome/browser/extensions/installed_loader.cc
+++ b/chrome/browser/extensions/installed_loader.cc
@@ -75,7 +75,8 @@ enum ExternalItemState {
};
bool IsManifestCorrupt(const DictionaryValue* manifest) {
- if (!manifest) return false;
+ if (!manifest)
+ return false;
// Because of bug #272524 sometimes manifests got mangled in the preferences
// file, one particularly bad case resulting in having both a background page
@@ -83,10 +84,8 @@ bool IsManifestCorrupt(const DictionaryValue* manifest) {
// manifest from the extension to fix this.
const Value* background_page;
const Value* background_scripts;
- return manifest->Get(extension_manifest_keys::kBackgroundPage,
- &background_page) &&
- manifest->Get(extension_manifest_keys::kBackgroundScripts,
- &background_scripts);
+ return manifest->Get(manifest_keys::kBackgroundPage, &background_page) &&
+ manifest->Get(manifest_keys::kBackgroundScripts, &background_scripts);
}
ManifestReloadReason ShouldReloadExtensionManifest(const ExtensionInfo& info) {

Powered by Google App Engine
This is Rietveld 408576698