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

Unified Diff: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm

Issue 12792013: Instant extended: Remove suggest commit on lost focus (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/location_bar/autocomplete_text_field_editor.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
index 78d128cc8056b8bb4dd41f590ed43c73a9823f40..feec9ed568e7c7ad5b3d1defb305f79b501209ce 100644
--- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
+++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
@@ -390,15 +390,6 @@ BOOL ThePasteboardIsTooDamnBig() {
}
- (void)setMarkedText:(id)aString selectedRange:(NSRange)selRange {
- if (![self hasMarkedText]) {
- // Before input methods set composition text in the omnibox, we need to
- // examine whether the autocompletion controller accepts the keyword to
- // avoid committing the current composition text wrongly.
- AutocompleteTextFieldObserver* observer = [self observer];
- if (observer)
- observer->OnStartingIME();
- }
-
[super setMarkedText:aString selectedRange:selRange];
// Because the OmniboxViewMac class treats marked text as content,

Powered by Google App Engine
This is Rietveld 408576698