230 std::string AwContentBrowserClient::GetApplicationLocale() {
231 return l10n_util::GetDefaultLocale();
232 }
46 int AwBrowserMainParts::PreCreateThreads() {
47 browser_context_->InitializeBeforeThreadCreation();
48
49 ui::ResourceBundle::InitSharedInstanceLocaleOnly(
50 l10n_util::GetDefaultLocale(), NULL); <========
51
52 base::FilePath pak_path;
53 PathService::Get(ui::DIR_RESOURCE_PAKS_ANDROID, &pak_path);
54
55 ui::ResourceBundle::GetSharedInstance().AddDataPackFromPath(
56 pak_path.AppendASCII("webviewchromium.pak"),
57 ui::SCALE_FACTOR_NONE);
58
59 base::android::MemoryPressureListenerAndroid::RegisterSystemCallback(
60 base::android::AttachCurrentThread());
61
62 return content::RESULT_CODE_NORMAL_EXIT;
63 }
64
248 void AwContents::InitAutofillIfNecessary(bool enabled) {
249
250 if (!enabled)
251 return;
252
253 content::WebContents* web_contents = web_contents_.get();
254 if (AutofillDriverImpl::FromWebContents(web_contents))
255 return;
256
257 AwBrowserContext::FromWebContents(web_contents)->
258 CreateUserPrefServiceIfNecessary();
259 AwAutofillManagerDelegate::CreateForWebContents(web_contents);
260 AutofillDriverImpl::CreateForWebContentsAndDelegate(
261 web_contents,
262 AwAutofillManagerDelegate::FromWebContents(web_contents),
263 l10n_util::GetDefaultLocale(),
264 AutofillManager::DISABLE_AUTOFILL_DOWNLOAD_MANAGER);
265 }