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

Unified Diff: chrome/browser/extensions/api/extension_action/extension_page_actions_api.cc

Issue 11312228: Move extension_error_utils.* and url_pattern_set.* into (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: hate Created 8 years, 1 month 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/api/extension_action/extension_page_actions_api.cc
diff --git a/chrome/browser/extensions/api/extension_action/extension_page_actions_api.cc b/chrome/browser/extensions/api/extension_action/extension_page_actions_api.cc
index f6bb47eabd31ef5de1f06064f80b026da3eb8d94..e21944bb13fa76869d5faf59a7e1625e7445bc8e 100644
--- a/chrome/browser/extensions/api/extension_action/extension_page_actions_api.cc
+++ b/chrome/browser/extensions/api/extension_action/extension_page_actions_api.cc
@@ -17,11 +17,12 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/common/extensions/extension.h"
-#include "chrome/common/extensions/extension_error_utils.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/web_contents.h"
+#include "extensions/common/error_utils.h"
using content::NavigationEntry;
+using extensions::ErrorUtils;
namespace keys = extension_page_actions_api_constants;
@@ -69,7 +70,7 @@ bool PageActionsFunction::SetPageActionEnabled(bool enable) {
bool result = ExtensionTabUtil::GetTabById(
tab_id, profile(), include_incognito(), NULL, NULL, &contents, NULL);
if (!result || !contents) {
- error_ = ExtensionErrorUtils::FormatErrorMessage(
+ error_ = ErrorUtils::FormatErrorMessage(
kNoTabError, base::IntToString(tab_id));
return false;
}
@@ -77,7 +78,7 @@ bool PageActionsFunction::SetPageActionEnabled(bool enable) {
// Make sure the URL hasn't changed.
NavigationEntry* entry = contents->GetController().GetActiveEntry();
if (!entry || url != entry->GetURL().spec()) {
- error_ = ExtensionErrorUtils::FormatErrorMessage(kUrlNotActiveError, url);
+ error_ = ErrorUtils::FormatErrorMessage(kUrlNotActiveError, url);
return false;
}

Powered by Google App Engine
This is Rietveld 408576698