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

Side by Side Diff: components/autofill/content/browser/content_autofill_driver.cc

Issue 1859453002: components/autofill: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed Created 4 years, 8 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/autofill/content/browser/content_autofill_driver.h" 5 #include "components/autofill/content/browser/content_autofill_driver.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/threading/sequenced_worker_pool.h" 10 #include "base/threading/sequenced_worker_pool.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 } 211 }
212 212
213 void ContentAutofillDriver::DidNavigateFrame( 213 void ContentAutofillDriver::DidNavigateFrame(
214 const content::LoadCommittedDetails& details, 214 const content::LoadCommittedDetails& details,
215 const content::FrameNavigateParams& params) { 215 const content::FrameNavigateParams& params) {
216 if (details.is_navigation_to_different_page()) 216 if (details.is_navigation_to_different_page())
217 autofill_manager_->Reset(); 217 autofill_manager_->Reset();
218 } 218 }
219 219
220 void ContentAutofillDriver::SetAutofillManager( 220 void ContentAutofillDriver::SetAutofillManager(
221 scoped_ptr<AutofillManager> manager) { 221 std::unique_ptr<AutofillManager> manager) {
222 autofill_manager_ = std::move(manager); 222 autofill_manager_ = std::move(manager);
223 autofill_manager_->SetExternalDelegate(&autofill_external_delegate_); 223 autofill_manager_->SetExternalDelegate(&autofill_external_delegate_);
224 } 224 }
225 225
226 } // namespace autofill 226 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698