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

Unified Diff: chrome/browser/autocomplete_history_manager.cc

Issue 8490017: Setting up external delegate calls to allow a future delegate to handle autofill (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Adding code review changes Created 9 years, 1 month 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/autocomplete_history_manager.cc
diff --git a/chrome/browser/autocomplete_history_manager.cc b/chrome/browser/autocomplete_history_manager.cc
index ea4e3998508430f7b54a7cb95ef8d17d876db979..c5f4cab7eed9a4bb295d1ebded2af2bd18d81eb1 100644
--- a/chrome/browser/autocomplete_history_manager.cc
+++ b/chrome/browser/autocomplete_history_manager.cc
@@ -219,6 +219,11 @@ void AutocompleteHistoryManager::OnWebDataServiceRequestDone(
SendSuggestions(&suggestions);
}
+void AutocompleteHistoryManager::SetExternalDelegate(
+ AutofillExternalDelegate* delegate) {
+ void SetExternalDelegate(AutofillExternalDelegate* delegate);
John Grabowski 2011/11/08 20:46:02 This doesn't look like valid code.
Ilya Sherman 2011/11/08 21:06:16 I don't think this is quite the change you wanted
csharp 2011/11/09 16:18:37 Fixed. Surprisingly this code did compile without
+}
+
AutocompleteHistoryManager::AutocompleteHistoryManager(
TabContents* tab_contents,
Profile* profile,
@@ -265,6 +270,7 @@ void AutocompleteHistoryManager::SendSuggestions(
}
if (external_delegate_) {
+ Send(new AutofillMsg_SetHasExternalDelegate(routing_id(), true));
John Grabowski 2011/11/08 20:46:02 You probably want to make this call at SetExternal
csharp 2011/11/09 16:18:37 We no longer make SetExternalDelegate calls, so pr
external_delegate_->OnSuggestionsReturned(
query_id_,
autofill_values_,

Powered by Google App Engine
This is Rietveld 408576698