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

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

Issue 1550053002: Convert Pass()→std::move() in //chrome/browser/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/command_line.h" 10 #include "base/command_line.h"
9 #include "base/logging.h" 11 #include "base/logging.h"
10 #include "base/prefs/pref_service.h" 12 #include "base/prefs/pref_service.h"
11 #include "build/build_config.h" 13 #include "build/build_config.h"
12 #include "chrome/browser/autofill/personal_data_manager_factory.h" 14 #include "chrome/browser/autofill/personal_data_manager_factory.h"
13 #include "chrome/browser/autofill/risk_util.h" 15 #include "chrome/browser/autofill/risk_util.h"
14 #include "chrome/browser/browser_process.h" 16 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/infobars/infobar_service.h" 17 #include "chrome/browser/infobars/infobar_service.h"
16 #include "chrome/browser/password_manager/chrome_password_manager_client.h" 18 #include "chrome/browser/password_manager/chrome_password_manager_client.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 scoped_ptr<base::DictionaryValue> legal_message) { 195 scoped_ptr<base::DictionaryValue> legal_message) {
194 // TODO(jdonnelly): Implement save card prompt for OS_IOS. 196 // TODO(jdonnelly): Implement save card prompt for OS_IOS.
195 #if defined(OS_ANDROID) 197 #if defined(OS_ANDROID)
196 AutofillCCInfoBarDelegate::CreateForUpload( 198 AutofillCCInfoBarDelegate::CreateForUpload(
197 InfoBarService::FromWebContents(web_contents()), callback); 199 InfoBarService::FromWebContents(web_contents()), callback);
198 #else 200 #else
199 // Do lazy initialization of SaveCardBubbleControllerImpl. 201 // Do lazy initialization of SaveCardBubbleControllerImpl.
200 autofill::SaveCardBubbleControllerImpl::CreateForWebContents(web_contents()); 202 autofill::SaveCardBubbleControllerImpl::CreateForWebContents(web_contents());
201 autofill::SaveCardBubbleControllerImpl* controller = 203 autofill::SaveCardBubbleControllerImpl* controller =
202 autofill::SaveCardBubbleControllerImpl::FromWebContents(web_contents()); 204 autofill::SaveCardBubbleControllerImpl::FromWebContents(web_contents());
203 controller->ShowBubbleForUpload(callback, legal_message.Pass()); 205 controller->ShowBubbleForUpload(callback, std::move(legal_message));
204 #endif 206 #endif
205 } 207 }
206 208
207 void ChromeAutofillClient::LoadRiskData( 209 void ChromeAutofillClient::LoadRiskData(
208 const base::Callback<void(const std::string&)>& callback) { 210 const base::Callback<void(const std::string&)>& callback) {
209 ::autofill::LoadRiskData(0, web_contents(), callback); 211 ::autofill::LoadRiskData(0, web_contents(), callback);
210 } 212 }
211 213
212 bool ChromeAutofillClient::HasCreditCardScanFeature() { 214 bool ChromeAutofillClient::HasCreditCardScanFeature() {
213 return CreditCardScannerController::HasCreditCardScanFeature(); 215 return CreditCardScannerController::HasCreditCardScanFeature();
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 359
358 ssl_status = navigation_entry->GetSSL(); 360 ssl_status = navigation_entry->GetSSL();
359 // Note: If changing the implementation below, also change 361 // Note: If changing the implementation below, also change
360 // AwAutofillClient::IsContextSecure. See crbug.com/505388 362 // AwAutofillClient::IsContextSecure. See crbug.com/505388
361 return ssl_status.security_style == 363 return ssl_status.security_style ==
362 content::SECURITY_STYLE_AUTHENTICATED && 364 content::SECURITY_STYLE_AUTHENTICATED &&
363 ssl_status.content_status == content::SSLStatus::NORMAL_CONTENT; 365 ssl_status.content_status == content::SSLStatus::NORMAL_CONTENT;
364 } 366 }
365 367
366 } // namespace autofill 368 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698