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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm

Issue 15003002: Omnibox refactor. Move StartAutocomplete and DoInstant to controller. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Answered Sreeram's comments. Created 7 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
Index: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
index 491cc9f534cbc4eb0a25766f2a2be4d0b6ca14e2..250282c26946b404e12d89f05e9a81b0c5293d62 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
@@ -693,7 +693,7 @@ bool OmniboxViewMac::OnDoCommandBySelector(SEL cmd) {
// Only commit suggested text if the cursor is all the way to the right and
// there is no selection.
if (suggest_text_.length() > 0 && IsCaretAtEnd()) {
- model()->CommitSuggestedText(true);
+ model()->CommitSuggestedText();
return true;
}
}

Powered by Google App Engine
This is Rietveld 408576698