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

Unified Diff: chrome/browser/autofill/autofill_external_delegate.h

Issue 12302034: Always Close the Autofill UI through the same path (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Adding Tests Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/autofill_external_delegate.h
diff --git a/chrome/browser/autofill/autofill_external_delegate.h b/chrome/browser/autofill/autofill_external_delegate.h
index 70ee882d4df9a6d163109cb6e47eafcc2c2abfff..562a8b42e6caa6088dba21c92035a5ada2b14761 100644
--- a/chrome/browser/autofill/autofill_external_delegate.h
+++ b/chrome/browser/autofill/autofill_external_delegate.h
@@ -127,6 +127,11 @@ class AutofillExternalDelegate
AutofillPopupControllerImpl* controller() { return controller_; }
+ // For testing purposes only.
+ void set_controller(base::WeakPtr<AutofillPopupControllerImpl> controller) {
+ controller_ = controller;
+ }
+
private:
// Fills the form with the Autofill data corresponding to |unique_id|.
// If |is_preview| is true then this is just a preview to show the user what

Powered by Google App Engine
This is Rietveld 408576698