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: components/password_manager/content/browser/content_password_manager_driver_factory.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, 11 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/content/browser/content_password_manager_d river_factory.h" 5 #include "components/password_manager/content/browser/content_password_manager_d river_factory.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "components/autofill/content/browser/content_autofill_driver.h" 10 #include "components/autofill/content/browser/content_autofill_driver.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 content::RenderFrameHost* render_frame_host, 108 content::RenderFrameHost* render_frame_host,
109 const content::LoadCommittedDetails& details, 109 const content::LoadCommittedDetails& details,
110 const content::FrameNavigateParams& params) { 110 const content::FrameNavigateParams& params) {
111 frame_driver_map_.find(render_frame_host) 111 frame_driver_map_.find(render_frame_host)
112 ->second->DidNavigateFrame(details, params); 112 ->second->DidNavigateFrame(details, params);
113 } 113 }
114 114
115 void ContentPasswordManagerDriverFactory::TestingSetDriverForFrame( 115 void ContentPasswordManagerDriverFactory::TestingSetDriverForFrame(
116 content::RenderFrameHost* render_frame_host, 116 content::RenderFrameHost* render_frame_host,
117 scoped_ptr<ContentPasswordManagerDriver> driver) { 117 scoped_ptr<ContentPasswordManagerDriver> driver) {
118 frame_driver_map_[render_frame_host] = driver.Pass(); 118 frame_driver_map_[render_frame_host] = std::move(driver);
119 } 119 }
120 120
121 void ContentPasswordManagerDriverFactory::RequestSendLoggingAvailability() { 121 void ContentPasswordManagerDriverFactory::RequestSendLoggingAvailability() {
122 for (const auto& key_val_iterator : frame_driver_map_) { 122 for (const auto& key_val_iterator : frame_driver_map_) {
123 key_val_iterator.second->SendLoggingAvailability(); 123 key_val_iterator.second->SendLoggingAvailability();
124 } 124 }
125 } 125 }
126 126
127 } // namespace password_manager 127 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698