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

Unified Diff: chrome/browser/extensions/api/proxy/proxy_api_helpers.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/proxy/proxy_api_helpers.cc
diff --git a/chrome/browser/extensions/api/proxy/proxy_api_helpers.cc b/chrome/browser/extensions/api/proxy/proxy_api_helpers.cc
index 0580fbf59dfa47a710c928298c0f806e21784227..7e89b5f69eb3b841f42243fd1ab4e4fd360290d3 100644
--- a/chrome/browser/extensions/api/proxy/proxy_api_helpers.cc
+++ b/chrome/browser/extensions/api/proxy/proxy_api_helpers.cc
@@ -21,7 +21,7 @@
#include "base/values.h"
#include "chrome/browser/extensions/api/proxy/proxy_api_constants.h"
#include "chrome/browser/prefs/proxy_config_dictionary.h"
-#include "chrome/common/extensions/extension_error_utils.h"
+#include "extensions/common/error_utils.h"
#include "net/base/data_url.h"
#include "net/proxy/proxy_config.h"
@@ -171,7 +171,7 @@ bool GetProxyServer(const DictionaryValue* proxy_server,
return false;
}
if (!IsStringASCII(host16)) {
- *error = ExtensionErrorUtils::FormatErrorMessage(
+ *error = ErrorUtils::FormatErrorMessage(
"Invalid 'rules.???.host' entry '*'. 'host' field supports only ASCII "
"URLs (encode URLs in Punycode format).",
UTF16ToUTF8(host16));
@@ -226,7 +226,7 @@ bool GetProxyRulesStringFromExtensionPref(const DictionaryValue* proxy_config,
if (has_proxy[keys::SCHEME_ALL]) {
for (size_t i = 1; i <= keys::SCHEME_MAX; ++i) {
if (has_proxy[i]) {
- *error = ExtensionErrorUtils::FormatErrorMessage(
+ *error = ErrorUtils::FormatErrorMessage(
"Proxy rule for * and * cannot be set at the same time.",
keys::field_name[keys::SCHEME_ALL], keys::field_name[i]);
return false;

Powered by Google App Engine
This is Rietveld 408576698