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

Side by Side Diff: components/password_manager/core/browser/stub_password_manager_client.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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 "components/password_manager/core/browser/stub_password_manager_client. h" 5 #include "components/password_manager/core/browser/stub_password_manager_client. h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "components/password_manager/core/browser/credentials_filter.h" 9 #include "components/password_manager/core/browser/credentials_filter.h"
10 #include "components/password_manager/core/browser/password_form_manager.h" 10 #include "components/password_manager/core/browser/password_form_manager.h"
11 11
12 namespace password_manager { 12 namespace password_manager {
13 13
14 ScopedVector<autofill::PasswordForm> 14 ScopedVector<autofill::PasswordForm>
15 StubPasswordManagerClient::PassThroughCredentialsFilter::FilterResults( 15 StubPasswordManagerClient::PassThroughCredentialsFilter::FilterResults(
16 ScopedVector<autofill::PasswordForm> results) const { 16 ScopedVector<autofill::PasswordForm> results) const {
17 return results.Pass(); 17 return results;
18 } 18 }
19 19
20 bool StubPasswordManagerClient::PassThroughCredentialsFilter::ShouldSave( 20 bool StubPasswordManagerClient::PassThroughCredentialsFilter::ShouldSave(
21 const autofill::PasswordForm& form) const { 21 const autofill::PasswordForm& form) const {
22 return true; 22 return true;
23 } 23 }
24 24
25 StubPasswordManagerClient::StubPasswordManagerClient() {} 25 StubPasswordManagerClient::StubPasswordManagerClient() {}
26 26
27 StubPasswordManagerClient::~StubPasswordManagerClient() {} 27 StubPasswordManagerClient::~StubPasswordManagerClient() {}
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 const CredentialsFilter* StubPasswordManagerClient::GetStoreResultFilter() 64 const CredentialsFilter* StubPasswordManagerClient::GetStoreResultFilter()
65 const { 65 const {
66 return &credentials_filter_; 66 return &credentials_filter_;
67 } 67 }
68 68
69 const LogManager* StubPasswordManagerClient::GetLogManager() const { 69 const LogManager* StubPasswordManagerClient::GetLogManager() const {
70 return &log_manager_; 70 return &log_manager_;
71 } 71 }
72 72
73 } // namespace password_manager 73 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698