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

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

Issue 2716493004: Renamed NavigationHandle::IsSamePage to NavigationHandle::IsSameDocument (Closed)
Patch Set: Rebased Created 3 years, 9 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 } 234 }
235 235
236 void ContentAutofillDriver::SetDataList( 236 void ContentAutofillDriver::SetDataList(
237 const std::vector<base::string16>& values, 237 const std::vector<base::string16>& values,
238 const std::vector<base::string16>& labels) { 238 const std::vector<base::string16>& labels) {
239 autofill_manager_->OnSetDataList(values, labels); 239 autofill_manager_->OnSetDataList(values, labels);
240 } 240 }
241 241
242 void ContentAutofillDriver::DidNavigateFrame( 242 void ContentAutofillDriver::DidNavigateFrame(
243 content::NavigationHandle* navigation_handle) { 243 content::NavigationHandle* navigation_handle) {
244 if (navigation_handle->IsInMainFrame() && !navigation_handle->IsSamePage()) 244 if (navigation_handle->IsInMainFrame() &&
245 !navigation_handle->IsSameDocument()) {
245 autofill_manager_->Reset(); 246 autofill_manager_->Reset();
247 }
246 } 248 }
247 249
248 void ContentAutofillDriver::SetAutofillManager( 250 void ContentAutofillDriver::SetAutofillManager(
249 std::unique_ptr<AutofillManager> manager) { 251 std::unique_ptr<AutofillManager> manager) {
250 autofill_manager_ = std::move(manager); 252 autofill_manager_ = std::move(manager);
251 autofill_manager_->SetExternalDelegate(&autofill_external_delegate_); 253 autofill_manager_->SetExternalDelegate(&autofill_external_delegate_);
252 } 254 }
253 255
254 void ContentAutofillDriver::NotifyFirstUserGestureObservedInTab() { 256 void ContentAutofillDriver::NotifyFirstUserGestureObservedInTab() {
255 GetAutofillAgent()->FirstUserGestureObservedInTab(); 257 GetAutofillAgent()->FirstUserGestureObservedInTab();
256 } 258 }
257 259
258 const mojom::AutofillAgentPtr& ContentAutofillDriver::GetAutofillAgent() { 260 const mojom::AutofillAgentPtr& ContentAutofillDriver::GetAutofillAgent() {
259 // Here is a lazy binding, and will not reconnect after connection error. 261 // Here is a lazy binding, and will not reconnect after connection error.
260 if (!autofill_agent_) { 262 if (!autofill_agent_) {
261 render_frame_host_->GetRemoteInterfaces()->GetInterface( 263 render_frame_host_->GetRemoteInterfaces()->GetInterface(
262 mojo::MakeRequest(&autofill_agent_)); 264 mojo::MakeRequest(&autofill_agent_));
263 } 265 }
264 266
265 return autofill_agent_; 267 return autofill_agent_;
266 } 268 }
267 269
268 } // namespace autofill 270 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_ui.cc ('k') | components/dom_distiller/content/browser/distillability_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698