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

Unified Diff: chrome/browser/extensions/pack_extension_job.cc

Issue 12256041: Fix a bug where extensions created with locale info from the command line is broken. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/pack_extension_job.cc
diff --git a/chrome/browser/extensions/pack_extension_job.cc b/chrome/browser/extensions/pack_extension_job.cc
index fc85098079dcaa5dc7fa919426ebf30680cf4f90..31c78c94eb1a90b06b89e9a59b9edaaeec44b35a 100644
--- a/chrome/browser/extensions/pack_extension_job.cc
+++ b/chrome/browser/extensions/pack_extension_job.cc
@@ -10,6 +10,9 @@
#include "base/utf_string_conversions.h"
#include "chrome/browser/extensions/extension_creator.h"
#include "chrome/common/chrome_constants.h"
+#include "chrome/common/extensions/api/i18n/default_locale_handler.h"
+#include "chrome/common/extensions/extension_manifest_constants.h"
+#include "chrome/common/extensions/manifest_handler.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
@@ -25,6 +28,8 @@ PackExtensionJob::PackExtensionJob(Client* client,
run_flags_(run_flags | ExtensionCreator::kRequireModernManifestVersion) {
root_directory_ = root_directory.StripTrailingSeparators();
CHECK(BrowserThread::GetCurrentThreadIdentifier(&client_thread_id_));
+ ManifestHandler::Register(extension_manifest_keys::kDefaultLocale,
+ make_linked_ptr(new DefaultLocaleHandler));
Joe Thomas 2013/02/14 18:14:42 We can also move this registration to StartupHelpe
Yoyo Zhou 2013/02/14 18:41:02 I think it belongs in StartupHelper, probably the
Joe Thomas 2013/02/14 18:48:47 I thought about that. Then I found that we just de
Joe Thomas 2013/02/14 19:16:28 Done.
}
void PackExtensionJob::Start() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698