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

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

Issue 12253022: Manifest handler for all keys background-related. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/menu_manager.cc
diff --git a/chrome/browser/extensions/menu_manager.cc b/chrome/browser/extensions/menu_manager.cc
index ed423e4c1b1ab384a11c6a38f6eff083ac941f24..033586672dd37673f13c04d11a26f395fb09d138 100644
--- a/chrome/browser/extensions/menu_manager.cc
+++ b/chrome/browser/extensions/menu_manager.cc
@@ -21,6 +21,7 @@
#include "chrome/browser/extensions/state_store.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_notification_types.h"
+#include "chrome/common/extensions/background_info.h"
#include "chrome/common/extensions/extension.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_source.h"
@@ -746,7 +747,7 @@ bool MenuManager::ItemUpdated(const MenuItem::Id& id) {
}
void MenuManager::WriteToStorage(const Extension* extension) {
- if (!extension->has_lazy_background_page())
+ if (!BackgroundInfo::HasLazyBackgroundPage(extension))
return;
const MenuItem::List* top_items = MenuItems(extension->id());
MenuItem::List all_items;
@@ -801,7 +802,7 @@ void MenuManager::Observe(int type,
const Extension* extension =
content::Details<const Extension>(details).ptr();
StateStore* store = ExtensionSystem::Get(profile_)->state_store();
- if (store && extension->has_lazy_background_page()) {
+ if (store && BackgroundInfo::HasLazyBackgroundPage(extension)) {
store->GetExtensionValue(extension->id(), kContextMenusKey,
base::Bind(&MenuManager::ReadFromStorage,
AsWeakPtr(), extension->id()));
« no previous file with comments | « chrome/browser/extensions/manifest_url_parser.cc ('k') | chrome/browser/extensions/sandboxed_unpacker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698