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

Unified Diff: chrome/common/extensions/extension.h

Issue 526012: Merge 32345 - Parse messages.json in ExtensionUnpacker (like we do for manife... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/249/src/
Patch Set: Created 10 years, 12 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
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension.h
===================================================================
--- chrome/common/extensions/extension.h (revision 35541)
+++ chrome/common/extensions/extension.h (working copy)
@@ -283,6 +283,8 @@
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_;
@@ -415,6 +417,9 @@
// 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_;
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698