Index: chrome/common/localized_error.cc |
diff --git a/chrome/common/localized_error.cc b/chrome/common/localized_error.cc |
index e786c13870ab90ac2e9a50398b087a3607f5aa90..cc50bf3c0b97f93c9780714a1c206350a753472c 100644 |
--- a/chrome/common/localized_error.cc |
+++ b/chrome/common/localized_error.cc |
@@ -15,9 +15,6 @@ |
#include "chrome/grit/generated_resources.h" |
#include "components/error_page/common/error_page_params.h" |
#include "components/error_page/common/net_error_info.h" |
-#include "extensions/common/constants.h" |
-#include "extensions/common/extension_icon_set.h" |
-#include "extensions/common/manifest_handlers/icons_handler.h" |
#include "net/base/escape.h" |
#include "net/base/net_errors.h" |
#include "net/base/net_util.h" |
@@ -29,6 +26,12 @@ |
#include "base/win/windows_version.h" |
#endif |
+#if defined(ENABLE_EXTENSIONS) |
+#include "extensions/common/constants.h" |
+#include "extensions/common/extension_icon_set.h" |
+#include "extensions/common/manifest_handlers/icons_handler.h" |
+#endif |
+ |
using blink::WebURLError; |
// Some error pages have no details. |
@@ -847,6 +850,7 @@ bool LocalizedError::HasStrings(const std::string& error_domain, |
return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != NULL; |
} |
+#if defined(ENABLE_EXTENSIONS) |
void LocalizedError::GetAppErrorStrings( |
const GURL& display_url, |
const extensions::Extension* app, |
@@ -886,3 +890,4 @@ void LocalizedError::GetAppErrorStrings( |
error_strings->Set("suggestionsLearnMore", suggest_learn_more); |
#endif // defined(OS_CHROMEOS) |
} |
+#endif |