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

Unified Diff: chrome/browser/instant/instant_controller.cc

Issue 6685002: Wires up ability for page to specify instant auto complete (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test and stray char Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/instant/instant_controller.cc
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc
index c556dff3e79fcc204ab8609687eab18ea0fdb4b7..50f833b9cfbcdfba60509e6a281b8572237fcabb 100644
--- a/chrome/browser/instant/instant_controller.cc
+++ b/chrome/browser/instant/instant_controller.cc
@@ -388,10 +388,12 @@ void InstantController::ShowInstantLoader(InstantLoader* loader) {
NotificationService::NoDetails());
}
-void InstantController::SetSuggestedTextFor(InstantLoader* loader,
- const string16& text) {
+void InstantController::SetSuggestedTextFor(
+ InstantLoader* loader,
+ const string16& text,
+ InstantCompleteBehavior behavior) {
if (loader_manager_->current_loader() == loader)
- delegate_->SetSuggestedText(text);
+ delegate_->SetSuggestedText(text, behavior);
}
gfx::Rect InstantController::GetInstantBounds() {

Powered by Google App Engine
This is Rietveld 408576698