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

Unified Diff: components/autofill/browser/autofill_country.cc

Issue 13409003: Hide ContentClient getters from embedders so that they they don't reuse content's embedder API. The… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 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: components/autofill/browser/autofill_country.cc
===================================================================
--- components/autofill/browser/autofill_country.cc (revision 192091)
+++ components/autofill/browser/autofill_country.cc (working copy)
@@ -9,6 +9,7 @@
#include <map>
#include <utility>
+#include "base/i18n/rtl.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
@@ -17,7 +18,6 @@
#include "base/threading/thread_checker.h"
#include "base/utf_string_conversions.h"
#include "content/public/browser/browser_thread.h"
-#include "content/public/browser/content_browser_client.h"
#include "grit/generated_resources.h"
#include "third_party/icu/public/common/unicode/locid.h"
#include "third_party/icu/public/common/unicode/uloc.h"
@@ -674,8 +674,7 @@
// cases. Hence, the somewhat strange looking DCHECK below.
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI) ||
thread_checker_.CalledOnValidThread());
- application_locale_ =
- content::GetContentClient()->browser()->GetApplicationLocale();
+ application_locale_ = base::i18n::GetConfiguredLocale();
Ilya Sherman 2013/04/03 23:51:18 Can you use g_browser_process->GetApplicationLocal
jam 2013/04/04 02:45:15 no, since src\components can't depend on src\chrom
Ilya Sherman 2013/04/04 04:05:36 Ah, right, we've been componentized. *sigh*
jam 2013/04/04 17:58:35 are you planning on fixing this soon? I had looked
}
return application_locale_;

Powered by Google App Engine
This is Rietveld 408576698