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

Issue 328031: Refactor paste and go out of AutocompleteEdit. (Closed)

Created:
11 years, 1 month ago by tfarina (gmail-do not use)
Modified:
9 years, 7 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org
Visibility:
Public.

Description

Refactor paste and go out of AutocompleteEdit. Changes: - Added a new class called SearchVersusNavigateClassifier to classify some given text in a query or an URL. - The profile class owns the object SearchVersusNavigateClassifier, also a getter function was added. - Cleanup was made in AutocompleteEdit. BUG=21317 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30473

Patch Set 1 #

Total comments: 11

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Total comments: 15

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 28

Patch Set 6 : '' #

Total comments: 16

Patch Set 7 : '' #

Total comments: 19

Patch Set 8 : '' #

Total comments: 9

Patch Set 9 : '' #

Total comments: 4

Patch Set 10 : style fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -83 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit.h View 7 2 chunks +1 line, -13 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit.cc View 7 8 9 5 chunks +15 lines, -69 lines 0 comments Download
M chrome/browser/automation/automation_profile_impl.h View 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/profile.h View 3 4 5 6 7 4 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/profile.cc View 3 4 5 6 7 4 chunks +15 lines, -1 line 0 comments Download
A chrome/browser/search_versus_navigate_classifier.h View 2 3 4 5 6 7 8 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/search_versus_navigate_classifier.cc View 2 3 4 5 6 7 8 1 chunk +56 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/testing_profile.h View 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
tfarina (gmail-do not use)
Peter this is my idea, but I think you'll have comments about that.
11 years, 1 month ago (2009-10-26 21:16:58 UTC) #1
Peter Kasting
http://codereview.chromium.org/328031/diff/1/3 File chrome/browser/url_verifier.cc (right): http://codereview.chromium.org/328031/diff/1/3#newcode12 Line 12: bool UrlVerifier::IsValidUrl(const std::wstring& text, Profile* profile) { Technically ...
11 years, 1 month ago (2009-10-26 21:29:53 UTC) #2
tfarina (gmail-do not use)
http://codereview.chromium.org/328031/diff/1/3 File chrome/browser/url_verifier.cc (right): http://codereview.chromium.org/328031/diff/1/3#newcode12 Line 12: bool UrlVerifier::IsValidUrl(const std::wstring& text, Profile* profile) { On ...
11 years, 1 month ago (2009-10-26 21:45:18 UTC) #3
Peter Kasting
http://codereview.chromium.org/328031/diff/1/3 File chrome/browser/url_verifier.cc (right): http://codereview.chromium.org/328031/diff/1/3#newcode12 Line 12: bool UrlVerifier::IsValidUrl(const std::wstring& text, Profile* profile) { On ...
11 years, 1 month ago (2009-10-26 21:48:53 UTC) #4
tfarina (gmail-do not use)
http://codereview.chromium.org/328031/diff/1/3 File chrome/browser/url_verifier.cc (right): http://codereview.chromium.org/328031/diff/1/3#newcode12 Line 12: bool UrlVerifier::IsValidUrl(const std::wstring& text, Profile* profile) { On ...
11 years, 1 month ago (2009-10-26 22:47:22 UTC) #5
Peter Kasting
On 2009/10/26 22:47:22, tfarina wrote: > Since I'm refactoring it, maybe the stuff about paste_and_go ...
11 years, 1 month ago (2009-10-26 23:28:18 UTC) #6
tfarina (gmail-do not use)
Peter the changes are: - No more the static method, just a normal function IsSearch. ...
11 years, 1 month ago (2009-10-27 00:56:18 UTC) #7
Peter Kasting
Besides my comments below you're missing two major areas: * Converting the code that currently ...
11 years, 1 month ago (2009-10-27 01:03:33 UTC) #8
tfarina (gmail-do not use)
Peter I will take care of all these issues tomorrow, now I have to go ...
11 years, 1 month ago (2009-10-27 01:38:38 UTC) #9
tfarina (gmail-do not use)
On Mon, Oct 26, 2009 at 11:03 PM, <pkasting@chromium.org> wrote: > Besides my comments below ...
11 years, 1 month ago (2009-10-27 19:26:25 UTC) #10
Peter Kasting
http://codereview.chromium.org/328031/diff/9001/10002 File chrome/browser/search_versus_navigate_classifier.cc (right): http://codereview.chromium.org/328031/diff/9001/10002#newcode7 Line 7: #include "chrome/browser/profile.h" Why do we need this #include? ...
11 years, 1 month ago (2009-10-27 20:12:09 UTC) #11
tfarina (gmail-do not use)
http://codereview.chromium.org/328031/diff/9001/10002 File chrome/browser/search_versus_navigate_classifier.cc (right): http://codereview.chromium.org/328031/diff/9001/10002#newcode26 Line 26: *is_search = false; On 2009/10/27 20:12:09, Peter Kasting ...
11 years, 1 month ago (2009-10-27 21:01:32 UTC) #12
Peter Kasting
http://codereview.chromium.org/328031/diff/9001/10002 File chrome/browser/search_versus_navigate_classifier.cc (right): http://codereview.chromium.org/328031/diff/9001/10002#newcode26 Line 26: *is_search = false; On 2009/10/27 21:01:32, tfarina wrote: ...
11 years, 1 month ago (2009-10-27 21:09:22 UTC) #13
tfarina (gmail-do not use)
Made the changes. http://codereview.chromium.org/328031/diff/9001/10002 File chrome/browser/search_versus_navigate_classifier.cc (right): http://codereview.chromium.org/328031/diff/9001/10002#newcode7 Line 7: #include "chrome/browser/profile.h" On 2009/10/27 20:12:09, ...
11 years, 1 month ago (2009-10-27 21:48:53 UTC) #14
Peter Kasting
You need to update the title and description of this patch. Also you should go ...
11 years, 1 month ago (2009-10-27 23:23:03 UTC) #15
tfarina (gmail-do not use)
Changes made Peter, also the title and description updated too. Note: Maybe you would have ...
11 years, 1 month ago (2009-10-28 00:29:26 UTC) #16
Peter Kasting
Getting close. The issue description is fine. I don't think you tested this, though, based ...
11 years, 1 month ago (2009-10-28 01:37:38 UTC) #17
Peter Kasting
11 years, 1 month ago (2009-10-28 01:37:49 UTC) #18
tfarina (gmail-do not use)
Peter I think you could take another look again. This time I built the chrome ...
11 years, 1 month ago (2009-10-28 20:06:32 UTC) #19
Peter Kasting
http://codereview.chromium.org/328031/diff/9010/9011 File chrome/browser/search_versus_navigate_classifier.h (right): http://codereview.chromium.org/328031/diff/9010/9011#newcode13 Line 13: class AutocompleteController; On 2009/10/28 20:06:32, tfarina wrote: > ...
11 years, 1 month ago (2009-10-28 20:15:58 UTC) #20
tfarina (gmail-do not use)
http://codereview.chromium.org/328031/diff/9010/9011 File chrome/browser/search_versus_navigate_classifier.h (right): http://codereview.chromium.org/328031/diff/9010/9011#newcode13 Line 13: class AutocompleteController; On 2009/10/28 20:15:58, Peter Kasting wrote: ...
11 years, 1 month ago (2009-10-28 20:33:29 UTC) #21
Peter Kasting
http://codereview.chromium.org/328031/diff/9010/9011 File chrome/browser/search_versus_navigate_classifier.h (right): http://codereview.chromium.org/328031/diff/9010/9011#newcode13 Line 13: class AutocompleteController; On 2009/10/28 20:33:31, tfarina wrote: > ...
11 years, 1 month ago (2009-10-28 20:39:40 UTC) #22
tfarina (gmail-do not use)
http://codereview.chromium.org/328031/diff/9010/9011 File chrome/browser/search_versus_navigate_classifier.h (right): http://codereview.chromium.org/328031/diff/9010/9011#newcode13 Line 13: class AutocompleteController; On 2009/10/28 20:39:40, Peter Kasting wrote: ...
11 years, 1 month ago (2009-10-28 21:10:28 UTC) #23
Peter Kasting
On 2009/10/28 21:10:28, tfarina wrote: > http://pastebin.com/d6bdb6bec This is being triggered by the inline destructor. ...
11 years, 1 month ago (2009-10-28 21:21:29 UTC) #24
tfarina (gmail-do not use)
On 2009/10/28 21:21:29, Peter Kasting wrote: > This is being triggered by the inline destructor. ...
11 years, 1 month ago (2009-10-28 21:38:41 UTC) #25
Peter Kasting
LGTM http://codereview.chromium.org/328031/diff/12050/12057 File chrome/browser/autocomplete/autocomplete_edit.cc (right): http://codereview.chromium.org/328031/diff/12050/12057#newcode575 Line 575: } Nit: I'd put a newline after ...
11 years, 1 month ago (2009-10-28 21:41:16 UTC) #26
tfarina (gmail-do not use)
http://codereview.chromium.org/328031/diff/12050/12057 File chrome/browser/autocomplete/autocomplete_edit.cc (right): http://codereview.chromium.org/328031/diff/12050/12057#newcode575 Line 575: } On 2009/10/28 21:41:16, Peter Kasting wrote: > ...
11 years, 1 month ago (2009-10-28 21:44:17 UTC) #27
Peter Kasting
11 years, 1 month ago (2009-10-29 17:53:55 UTC) #28
Landed in r30473.

Powered by Google App Engine
This is Rietveld 408576698