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

Side by Side Diff: chrome/browser/ui/browser_tab_contents.cc

Issue 13488009: Remove application locale cache in autofill code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/browser_tab_contents.h" 5 #include "chrome/browser/ui/browser_tab_contents.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 9 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
9 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h" 10 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h"
10 #include "chrome/browser/extensions/tab_helper.h" 11 #include "chrome/browser/extensions/tab_helper.h"
11 #include "chrome/browser/external_protocol/external_protocol_observer.h" 12 #include "chrome/browser/external_protocol/external_protocol_observer.h"
12 #include "chrome/browser/favicon/favicon_tab_helper.h" 13 #include "chrome/browser/favicon/favicon_tab_helper.h"
13 #include "chrome/browser/history/history_tab_helper.h" 14 #include "chrome/browser/history/history_tab_helper.h"
14 #include "chrome/browser/infobars/infobar_service.h" 15 #include "chrome/browser/infobars/infobar_service.h"
15 #include "chrome/browser/managed_mode/managed_mode_navigation_observer.h" 16 #include "chrome/browser/managed_mode/managed_mode_navigation_observer.h"
16 #include "chrome/browser/net/load_time_stats.h" 17 #include "chrome/browser/net/load_time_stats.h"
17 #include "chrome/browser/net/net_error_tab_helper.h" 18 #include "chrome/browser/net/net_error_tab_helper.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 Profile::FromBrowserContext(web_contents->GetBrowserContext()); 100 Profile::FromBrowserContext(web_contents->GetBrowserContext());
100 101
101 // SessionTabHelper comes first because it sets up the tab ID, and other 102 // SessionTabHelper comes first because it sets up the tab ID, and other
102 // helpers may rely on that. 103 // helpers may rely on that.
103 SessionTabHelper::CreateForWebContents(web_contents); 104 SessionTabHelper::CreateForWebContents(web_contents);
104 105
105 AlternateErrorPageTabObserver::CreateForWebContents(web_contents); 106 AlternateErrorPageTabObserver::CreateForWebContents(web_contents);
106 autofill::TabAutofillManagerDelegate::CreateForWebContents(web_contents); 107 autofill::TabAutofillManagerDelegate::CreateForWebContents(web_contents);
107 AutofillManager::CreateForWebContentsAndDelegate( 108 AutofillManager::CreateForWebContentsAndDelegate(
108 web_contents, 109 web_contents,
109 autofill::TabAutofillManagerDelegate::FromWebContents(web_contents)); 110 autofill::TabAutofillManagerDelegate::FromWebContents(web_contents),
111 g_browser_process->GetApplicationLocale());
110 if (!CommandLine::ForCurrentProcess()->HasSwitch( 112 if (!CommandLine::ForCurrentProcess()->HasSwitch(
111 switches::kDisableNativeAutofillUi)) { 113 switches::kDisableNativeAutofillUi)) {
112 AutofillExternalDelegate::CreateForWebContentsAndManager( 114 AutofillExternalDelegate::CreateForWebContentsAndManager(
113 web_contents, AutofillManager::FromWebContents(web_contents)); 115 web_contents, AutofillManager::FromWebContents(web_contents));
114 AutofillManager::FromWebContents(web_contents)->SetExternalDelegate( 116 AutofillManager::FromWebContents(web_contents)->SetExternalDelegate(
115 AutofillExternalDelegate::FromWebContents(web_contents)); 117 AutofillExternalDelegate::FromWebContents(web_contents));
116 } 118 }
117 BlockedContentTabHelper::CreateForWebContents(web_contents); 119 BlockedContentTabHelper::CreateForWebContents(web_contents);
118 BookmarkTabHelper::CreateForWebContents(web_contents); 120 BookmarkTabHelper::CreateForWebContents(web_contents);
119 chrome_browser_net::LoadTimeStatsTabHelper::CreateForWebContents( 121 chrome_browser_net::LoadTimeStatsTabHelper::CreateForWebContents(
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 if (OneClickSigninHelper::CanOffer( 175 if (OneClickSigninHelper::CanOffer(
174 web_contents, OneClickSigninHelper::CAN_OFFER_FOR_ALL, "", NULL)) { 176 web_contents, OneClickSigninHelper::CAN_OFFER_FOR_ALL, "", NULL)) {
175 OneClickSigninHelper::CreateForWebContents(web_contents); 177 OneClickSigninHelper::CreateForWebContents(web_contents);
176 } 178 }
177 #endif 179 #endif
178 180
179 #if defined(OS_WIN) 181 #if defined(OS_WIN)
180 MetroPinTabHelper::CreateForWebContents(web_contents); 182 MetroPinTabHelper::CreateForWebContents(web_contents);
181 #endif 183 #endif
182 } 184 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/data_model_wrapper.cc ('k') | chrome/browser/ui/webui/options/autofill_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698