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

Unified Diff: android_webview/browser/aw_form_database_service.cc

Issue 628263004: [Android] Simplify logic for grabbing initial country-code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « android_webview/browser/aw_content_browser_client.cc ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_form_database_service.cc
diff --git a/android_webview/browser/aw_form_database_service.cc b/android_webview/browser/aw_form_database_service.cc
index 0fab72e2f0eb9932c0b8b1f9828636ac2bf4070d..4cdba64366ec436a39ebd5bce85d57206abae221 100644
--- a/android_webview/browser/aw_form_database_service.cc
+++ b/android_webview/browser/aw_form_database_service.cc
@@ -3,12 +3,13 @@
// found in the LICENSE file.
#include "android_webview/browser/aw_form_database_service.h"
+
+#include "base/android/locale_utils.h"
#include "base/logging.h"
#include "base/synchronization/waitable_event.h"
#include "components/autofill/core/browser/webdata/autofill_table.h"
#include "components/webdata/common/webdata_constants.h"
#include "content/public/browser/browser_thread.h"
-#include "ui/base/l10n/l10n_util_android.h"
using base::WaitableEvent;
using content::BrowserThread;
@@ -32,7 +33,7 @@ AwFormDatabaseService::AwFormDatabaseService(const base::FilePath path) {
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB));
web_database_->AddTable(
scoped_ptr<WebDatabaseTable>(new autofill::AutofillTable(
- l10n_util::GetDefaultLocale())));
+ base::android::GetDefaultLocale())));
web_database_->LoadDatabase();
autofill_data_ = new autofill::AutofillWebDataService(
« no previous file with comments | « android_webview/browser/aw_content_browser_client.cc ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698