summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/extension.h')
-rw-r--r--chrome/common/extensions/extension.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 8cd5da3..7738acf 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -274,6 +274,8 @@ class Extension {
message_bundle_.reset(message_bundle);
}
+ const std::string default_locale() const { return default_locale_; }
+
// Chrome URL overrides (see ExtensionOverrideUI).
const URLOverrideMap& GetChromeURLOverrides() const {
return chrome_url_overrides_;
@@ -406,6 +408,9 @@ class Extension {
// Handles the l10n messages replacement and parsing.
scoped_ptr<ExtensionMessageBundle> message_bundle_;
+ // Default locale for fall back. Can be empty if extension is not localized.
+ std::string default_locale_;
+
// A map of chrome:// hostnames (newtab, downloads, etc.) to Extension URLs
// which override the handling of those URLs.
URLOverrideMap chrome_url_overrides_;