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

Unified Diff: chrome/browser/extensions/api/i18n/i18n_api.cc

Issue 14694010: Consolidate manifest handler registration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
Index: chrome/browser/extensions/api/i18n/i18n_api.cc
diff --git a/chrome/browser/extensions/api/i18n/i18n_api.cc b/chrome/browser/extensions/api/i18n/i18n_api.cc
index 2487dfe8c3b7cf1e4cbff0198ca338b5ab379fa8..dbf3b71d3de75005d1aa2dc20dcdacdeba48139e 100644
--- a/chrome/browser/extensions/api/i18n/i18n_api.cc
+++ b/chrome/browser/extensions/api/i18n/i18n_api.cc
@@ -14,7 +14,6 @@
#include "base/strings/string_split.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/api/i18n.h"
-#include "chrome/common/extensions/api/i18n/default_locale_handler.h"
#include "chrome/common/pref_names.h"
namespace GetAcceptLanguages = extensions::api::i18n::GetAcceptLanguages;
@@ -60,19 +59,4 @@ bool I18nGetAcceptLanguagesFunction::RunImpl() {
return true;
}
-I18nAPI::I18nAPI(Profile* profile) {
- (new DefaultLocaleHandler)->Register();
-}
-
-I18nAPI::~I18nAPI() {
-}
-
-static base::LazyInstance<ProfileKeyedAPIFactory<I18nAPI> >
- g_factory = LAZY_INSTANCE_INITIALIZER;
-
-// static
-ProfileKeyedAPIFactory<I18nAPI>* I18nAPI::GetFactoryInstance() {
- return &g_factory.Get();
-}
-
} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/api/i18n/i18n_api.h ('k') | chrome/browser/extensions/api/identity/identity_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698