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

Unified Diff: chrome/common/extensions/api/extension_action/browser_action_handler.cc

Issue 12618009: Move SystemIndicator parsing out of Extension class (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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/common/extensions/api/extension_action/browser_action_handler.cc
diff --git a/chrome/common/extensions/api/extension_action/browser_action_handler.cc b/chrome/common/extensions/api/extension_action/browser_action_handler.cc
index 5378b53afacd331ecfbcb13fc324d06f618a4123..26af4d4ecf8562e5aa0ee5afe5711283a6decb5b 100644
--- a/chrome/common/extensions/api/extension_action/browser_action_handler.cc
+++ b/chrome/common/extensions/api/extension_action/browser_action_handler.cc
@@ -13,7 +13,6 @@
#include "chrome/common/extensions/extension_manifest_constants.h"
#include "chrome/common/extensions/feature_switch.h"
#include "chrome/common/extensions/manifest.h"
-#include "chrome/common/extensions/manifest_handler_helpers.h"
#include "grit/generated_resources.h"
namespace extensions {
@@ -33,8 +32,7 @@ bool BrowserActionHandler::Parse(Extension* extension,
return false;
}
- scoped_ptr<ActionInfo> action_info =
- manifest_handler_helpers::LoadActionInfo(extension, dict, error);
+ scoped_ptr<ActionInfo> action_info = ActionInfo::Load(extension, dict, error);
if (!action_info.get())
return false; // Failed to parse browser action definition.
@@ -47,8 +45,7 @@ bool BrowserActionHandler::Validate(
const Extension* extension,
std::string* error,
std::vector<InstallWarning>* warnings) const {
- const ActionInfo* action =
- extensions::ActionInfo::GetBrowserActionInfo(extension);
+ const ActionInfo* action = ActionInfo::GetBrowserActionInfo(extension);
if (action && !action->default_icon.empty() &&
!extension_file_util::ValidateExtensionIconSet(
action->default_icon,

Powered by Google App Engine
This is Rietveld 408576698