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

Side by Side Diff: chrome/browser/ui/autofill/chrome_autofill_client.cc

Issue 2272173002: Fix most chrome/browser/ui "gn check" problems. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/autofill/chrome_autofill_client.h" 5 #include "chrome/browser/ui/autofill/chrome_autofill_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "chrome/browser/autofill/personal_data_manager_factory.h" 14 #include "chrome/browser/autofill/personal_data_manager_factory.h"
15 #include "chrome/browser/autofill/risk_util.h" 15 #include "chrome/browser/autofill/risk_util.h"
16 #include "chrome/browser/browser_process.h" 16 #include "chrome/browser/browser_process.h"
17 #include "chrome/browser/password_manager/chrome_password_manager_client.h" 17 #include "chrome/browser/password_manager/chrome_password_manager_client.h"
18 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/profiles/profile_manager.h" 19 #include "chrome/browser/profiles/profile_manager.h"
20 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 20 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
21 #include "chrome/browser/signin/signin_manager_factory.h" 21 #include "chrome/browser/signin/signin_manager_factory.h"
22 #include "chrome/browser/signin/signin_promo_util.h" 22 #include "chrome/browser/signin/signin_promo_util.h"
23 #include "chrome/browser/sync/profile_sync_service_factory.h" 23 #include "chrome/browser/sync/profile_sync_service_factory.h"
24 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" 24 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h"
25 #include "chrome/browser/ui/autofill/create_card_unmask_prompt_view.h" 25 #include "chrome/browser/ui/autofill/create_card_unmask_prompt_view.h"
26 #include "chrome/browser/ui/autofill/credit_card_scanner_controller.h" 26 #include "chrome/browser/ui/autofill/credit_card_scanner_controller.h"
27 #include "chrome/browser/ui/autofill/save_card_bubble_controller_impl.h" 27 #include "chrome/browser/ui/autofill/save_card_bubble_controller_impl.h"
28 #include "chrome/browser/ui/browser.h"
29 #include "chrome/browser/ui/browser_finder.h" 28 #include "chrome/browser/ui/browser_finder.h"
30 #include "chrome/browser/ui/browser_window.h" 29 #include "chrome/browser/ui/browser_window.h"
31 #include "chrome/browser/ui/chrome_pages.h" 30 #include "chrome/browser/ui/chrome_pages.h"
32 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" 31 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
33 #include "chrome/browser/web_data_service_factory.h" 32 #include "chrome/browser/web_data_service_factory.h"
34 #include "chrome/common/features.h" 33 #include "chrome/common/features.h"
35 #include "chrome/common/url_constants.h" 34 #include "chrome/common/url_constants.h"
36 #include "components/autofill/content/browser/content_autofill_driver.h" 35 #include "components/autofill/content/browser/content_autofill_driver.h"
37 #include "components/autofill/content/browser/content_autofill_driver_factory.h" 36 #include "components/autofill/content/browser/content_autofill_driver_factory.h"
38 #include "components/autofill/content/common/autofill_messages.h" 37 #include "components/autofill/content/common/autofill_messages.h"
(...skipping 22 matching lines...) Expand all
61 #if defined(OS_ANDROID) 60 #if defined(OS_ANDROID)
62 #include "base/android/context_utils.h" 61 #include "base/android/context_utils.h"
63 #include "chrome/browser/android/signin/signin_promo_util_android.h" 62 #include "chrome/browser/android/signin/signin_promo_util_android.h"
64 #include "chrome/browser/infobars/infobar_service.h" 63 #include "chrome/browser/infobars/infobar_service.h"
65 #include "chrome/browser/ui/android/infobars/autofill_credit_card_filling_infoba r.h" 64 #include "chrome/browser/ui/android/infobars/autofill_credit_card_filling_infoba r.h"
66 #include "components/autofill/core/browser/autofill_credit_card_filling_infobar_ delegate_mobile.h" 65 #include "components/autofill/core/browser/autofill_credit_card_filling_infobar_ delegate_mobile.h"
67 #include "components/autofill/core/browser/autofill_save_card_infobar_delegate_m obile.h" 66 #include "components/autofill/core/browser/autofill_save_card_infobar_delegate_m obile.h"
68 #include "components/autofill/core/browser/autofill_save_card_infobar_mobile.h" 67 #include "components/autofill/core/browser/autofill_save_card_infobar_mobile.h"
69 #include "components/infobars/core/infobar.h" 68 #include "components/infobars/core/infobar.h"
70 #include "content/public/browser/android/content_view_core.h" 69 #include "content/public/browser/android/content_view_core.h"
70 #else // !OS_ANDROID
71 #include "chrome/browser/ui/browser.h"
71 #endif 72 #endif
72 73
73 DEFINE_WEB_CONTENTS_USER_DATA_KEY(autofill::ChromeAutofillClient); 74 DEFINE_WEB_CONTENTS_USER_DATA_KEY(autofill::ChromeAutofillClient);
74 75
75 namespace autofill { 76 namespace autofill {
76 77
77 ChromeAutofillClient::ChromeAutofillClient(content::WebContents* web_contents) 78 ChromeAutofillClient::ChromeAutofillClient(content::WebContents* web_contents)
78 : content::WebContentsObserver(web_contents), 79 : content::WebContentsObserver(web_contents),
79 unmask_controller_( 80 unmask_controller_(
80 user_prefs::UserPrefs::Get(web_contents->GetBrowserContext()), 81 user_prefs::UserPrefs::Get(web_contents->GetBrowserContext()),
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 chrome::FindBrowserWithWebContents(web_contents()) 383 chrome::FindBrowserWithWebContents(web_contents())
383 ->window() 384 ->window()
384 ->ShowAvatarBubbleFromAvatarButton( 385 ->ShowAvatarBubbleFromAvatarButton(
385 BrowserWindow::AVATAR_BUBBLE_MODE_SIGNIN, 386 BrowserWindow::AVATAR_BUBBLE_MODE_SIGNIN,
386 signin::ManageAccountsParams(), 387 signin::ManageAccountsParams(),
387 signin_metrics::AccessPoint::ACCESS_POINT_AUTOFILL_DROPDOWN); 388 signin_metrics::AccessPoint::ACCESS_POINT_AUTOFILL_DROPDOWN);
388 #endif 389 #endif
389 } 390 }
390 391
391 } // namespace autofill 392 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698