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

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

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Rebase. Created 4 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 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"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 Profile::FromBrowserContext(web_contents()->GetBrowserContext()); 118 Profile::FromBrowserContext(web_contents()->GetBrowserContext());
119 return WebDataServiceFactory::GetAutofillWebDataForProfile( 119 return WebDataServiceFactory::GetAutofillWebDataForProfile(
120 profile, ServiceAccessType::EXPLICIT_ACCESS); 120 profile, ServiceAccessType::EXPLICIT_ACCESS);
121 } 121 }
122 122
123 PrefService* ChromeAutofillClient::GetPrefs() { 123 PrefService* ChromeAutofillClient::GetPrefs() {
124 return Profile::FromBrowserContext(web_contents()->GetBrowserContext()) 124 return Profile::FromBrowserContext(web_contents()->GetBrowserContext())
125 ->GetPrefs(); 125 ->GetPrefs();
126 } 126 }
127 127
128 sync_driver::SyncService* ChromeAutofillClient::GetSyncService() { 128 syncer::SyncService* ChromeAutofillClient::GetSyncService() {
129 Profile* profile = 129 Profile* profile =
130 Profile::FromBrowserContext(web_contents()->GetBrowserContext()); 130 Profile::FromBrowserContext(web_contents()->GetBrowserContext());
131 return ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile); 131 return ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile);
132 } 132 }
133 133
134 IdentityProvider* ChromeAutofillClient::GetIdentityProvider() { 134 IdentityProvider* ChromeAutofillClient::GetIdentityProvider() {
135 if (!identity_provider_) { 135 if (!identity_provider_) {
136 Profile* profile = 136 Profile* profile =
137 Profile::FromBrowserContext(web_contents()->GetBrowserContext()) 137 Profile::FromBrowserContext(web_contents()->GetBrowserContext())
138 ->GetOriginalProfile(); 138 ->GetOriginalProfile();
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 chrome::FindBrowserWithWebContents(web_contents()) 384 chrome::FindBrowserWithWebContents(web_contents())
385 ->window() 385 ->window()
386 ->ShowAvatarBubbleFromAvatarButton( 386 ->ShowAvatarBubbleFromAvatarButton(
387 BrowserWindow::AVATAR_BUBBLE_MODE_SIGNIN, 387 BrowserWindow::AVATAR_BUBBLE_MODE_SIGNIN,
388 signin::ManageAccountsParams(), 388 signin::ManageAccountsParams(),
389 signin_metrics::AccessPoint::ACCESS_POINT_AUTOFILL_DROPDOWN); 389 signin_metrics::AccessPoint::ACCESS_POINT_AUTOFILL_DROPDOWN);
390 #endif 390 #endif
391 } 391 }
392 392
393 } // namespace autofill 393 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/chrome_autofill_client.h ('k') | chrome/browser/ui/avatar_button_error_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698