Commit 1f552020 authored by joi@chromium.org's avatar joi@chromium.org

Remove autofill's dependency on BrowserProcess.

BUG=140037

Review URL: https://chromiumcodereview.appspot.com/10828154

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150350 0039d316-1c4b-4281-b951-d872f2087c98
parent 904ce69d
...@@ -10,7 +10,6 @@ include_rules = [ ...@@ -10,7 +10,6 @@ include_rules = [
# #
# Do not add to the list of temporarily-allowed dependencies below, # Do not add to the list of temporarily-allowed dependencies below,
# and please do not introduce more #includes of these files. # and please do not introduce more #includes of these files.
"!chrome/browser/browser_process.h",
"!chrome/browser/feedback/proto/extension.pb.h", "!chrome/browser/feedback/proto/extension.pb.h",
"!chrome/browser/infobars/infobar_tab_helper.h", "!chrome/browser/infobars/infobar_tab_helper.h",
"!chrome/browser/password_manager/encryptor.h", "!chrome/browser/password_manager/encryptor.h",
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include "base/stl_util.h" #include "base/stl_util.h"
#include "base/string_util.h" #include "base/string_util.h"
#include "base/utf_string_conversions.h" #include "base/utf_string_conversions.h"
#include "chrome/browser/browser_process.h" #include "content/public/browser/content_browser_client.h"
#include "content/public/browser/browser_thread.h" #include "content/public/browser/browser_thread.h"
#include "grit/generated_resources.h" #include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h" #include "ui/base/l10n/l10n_util.h"
...@@ -424,7 +424,8 @@ CountryNames* CountryNames::GetInstance() { ...@@ -424,7 +424,8 @@ CountryNames* CountryNames::GetInstance() {
const std::string CountryNames::ApplicationLocale() { const std::string CountryNames::ApplicationLocale() {
if (application_locale_.empty()) { if (application_locale_.empty()) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
application_locale_ = g_browser_process->GetApplicationLocale(); application_locale_ =
content::GetContentClient()->browser()->GetApplicationLocale();
} }
return application_locale_; return application_locale_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment