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

Unified Diff: chrome/browser/autocomplete/autocomplete.cc

Issue 119116: Fix crash due to AutocompletePopup trying to draw the old results when they w... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
« no previous file with comments | « chrome/browser/autocomplete/autocomplete.h ('k') | chrome/browser/autocomplete/autocomplete_popup_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete.cc
===================================================================
--- chrome/browser/autocomplete/autocomplete.cc (revision 17436)
+++ chrome/browser/autocomplete/autocomplete.cc (working copy)
@@ -765,10 +765,10 @@
this, &AutocompleteController::CommitResult);
}
- result_.CopyFrom(latest_result_);
NotificationService::current()->Notify(
NotificationType::AUTOCOMPLETE_CONTROLLER_SYNCHRONOUS_MATCHES_AVAILABLE,
- Source<AutocompleteController>(this), NotificationService::NoDetails());
+ Source<AutocompleteController>(this),
+ Details<const AutocompleteResult>(&latest_result_));
}
if (done_) {
@@ -796,7 +796,8 @@
result_.CopyFrom(latest_result_);
NotificationService::current()->Notify(
NotificationType::AUTOCOMPLETE_CONTROLLER_RESULT_UPDATED,
- Source<AutocompleteController>(this), NotificationService::NoDetails());
+ Source<AutocompleteController>(this),
+ Details<const AutocompleteResult>(&result_));
}
ACMatches AutocompleteController::GetMatchesNotInLatestResult(
« no previous file with comments | « chrome/browser/autocomplete/autocomplete.h ('k') | chrome/browser/autocomplete/autocomplete_popup_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698