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

Issue 18119005: Misc. cleanup: (Closed)

Created:
7 years, 5 months ago by Peter Kasting
Modified:
7 years, 5 months ago
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, mad+watch_chromium.org, dominich, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, tfarina, kmadhusu+watch_chromium.org, James Su, Jered
Visibility:
Public.

Description

Misc. cleanup: * Reduce indenting levels * Align args per style guide * Improve (or remove) comments * Pass around TemplateURL*s where convenient and safe instead of converting to/from keywords. This generally simplifies things slightly and will be useful for subsequent changes that need the TemplateURL*s in more places. * Don't handle DCHECK failure * Nuke long-outdated disabled KeywordProvider unittest * Attempt (and probably fail) to put SearchProvider::CreateSearchSuggestion() args in some sort of order * Remove using directives where they don't save lines * Follow style guide class declaration order * Use OVERRIDE * Make function declaration and definition order match * Shorten/simplify code * Put all three IsGoogleXXX() functions that take URLs in one group * Eliminate unnecessary #includes * Add GetDefaultSearchURLForSearchTerms() function to c/b/search_engines/util.h since many disparate callers want to do that (and in a subsequent change I'll want to slightly modify how that works) * Fix presubmit warning about mismatched braces * Remove unnecessary ResetDefaultTemplateURL() calls from ToolbarModel tests BUG=249197 TEST=none R=cpu@chromium.org, jered@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209228

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 17

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+386 lines, -469 lines) Patch
M chrome/browser/autocomplete/autocomplete_controller.cc View 1 1 chunk +15 lines, -15 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_provider_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/keyword_provider.h View 1 2 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/autocomplete/keyword_provider.cc View 1 2 3 4 5 6 13 chunks +69 lines, -83 lines 0 comments Download
M chrome/browser/autocomplete/keyword_provider_unittest.cc View 2 chunks +11 lines, -31 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.h View 1 chunk +19 lines, -12 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 3 chunks +13 lines, -16 lines 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 3 7 chunks +59 lines, -59 lines 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.h View 1 chunk +10 lines, -9 lines 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.cc View 1 2 chunks +10 lines, -14 lines 0 comments Download
M chrome/browser/google/google_util.h View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/google/google_util.cc View 1 2 3 4 7 chunks +37 lines, -40 lines 0 comments Download
M chrome/browser/google/google_util_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.cc View 2 chunks +5 lines, -14 lines 0 comments Download
M chrome/browser/search/search.cc View 4 chunks +28 lines, -36 lines 0 comments Download
M chrome/browser/search_engines/template_url.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data_unittest.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.h View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/util.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/util.cc View 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_controller.cc View 3 chunks +12 lines, -23 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 3 chunks +31 lines, -29 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 3 chunks +10 lines, -17 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_win.cc View 2 chunks +4 lines, -17 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_unittest.cc View 2 chunks +4 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame_win.cc View 2 chunks +4 lines, -17 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Peter Kasting
Jered: This is all the cleanup split off from https://codereview.chromium.org/17022004/ , so you'll have reviewed ...
7 years, 5 months ago (2013-06-27 22:57:53 UTC) #1
cpu_(ooo_6.6-7.5)
lgtm for my file
7 years, 5 months ago (2013-06-28 20:53:53 UTC) #2
Jered
lgtm I have a bunch of nits. This is indeed pretty "misc". https://codereview.chromium.org/18119005/diff/2007/chrome/browser/autocomplete/keyword_provider.cc File chrome/browser/autocomplete/keyword_provider.cc ...
7 years, 5 months ago (2013-06-28 21:57:28 UTC) #3
Peter Kasting
One question, repeated in two places below. https://codereview.chromium.org/18119005/diff/2007/chrome/browser/autocomplete/keyword_provider.cc File chrome/browser/autocomplete/keyword_provider.cc (right): https://codereview.chromium.org/18119005/diff/2007/chrome/browser/autocomplete/keyword_provider.cc#newcode476 chrome/browser/autocomplete/keyword_provider.cc:476: On 2013/06/28 ...
7 years, 5 months ago (2013-06-28 22:16:01 UTC) #4
Jered
https://codereview.chromium.org/18119005/diff/2007/chrome/browser/ui/views/frame/browser_frame_win.cc File chrome/browser/ui/views/frame/browser_frame_win.cc (right): https://codereview.chromium.org/18119005/diff/2007/chrome/browser/ui/views/frame/browser_frame_win.cc#newcode471 chrome/browser/ui/views/frame/browser_frame_win.cc:471: browser->profile(), reinterpret_cast<const wchar_t*>(l_param)); On 2013/06/28 22:16:02, Peter Kasting wrote: ...
7 years, 5 months ago (2013-06-28 22:22:28 UTC) #5
Peter Kasting
7 years, 5 months ago (2013-06-28 22:52:22 UTC) #6
Message was sent while issue was closed.
Committed patchset #7 manually as r209228 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698