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

Unified Diff: chrome/browser/autocomplete/autocomplete_edit.h

Issue 6281011: Allow space to accept keyword even when inline autocomplete is available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update. Created 9 years, 11 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 | « no previous file | chrome/browser/autocomplete/autocomplete_edit.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_edit.h
diff --git a/chrome/browser/autocomplete/autocomplete_edit.h b/chrome/browser/autocomplete/autocomplete_edit.h
index 6458f6c92e3a180f962607785fb3108bfac39192..c21cb9581655331f73249ddebce08ae5e2deffc4 100644
--- a/chrome/browser/autocomplete/autocomplete_edit.h
+++ b/chrome/browser/autocomplete/autocomplete_edit.h
@@ -379,8 +379,10 @@ class AutocompleteEditModel : public NotificationObserver {
bool GetURLForText(const std::wstring& text, GURL* url) const;
// Accepts current keyword if the user only typed a space at the end of
- // |new_user_text|. Returns true if the current keyword is accepted.
- bool MaybeAcceptKeywordBySpace(const std::wstring& new_user_text);
+ // |new_user_text| comparing to the |old_user_text|.
+ // Returns true if the current keyword is accepted.
+ bool MaybeAcceptKeywordBySpace(const std::wstring& old_user_text,
+ const std::wstring& new_user_text);
// Checks if a given character is a valid space character for accepting
// keyword.
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698