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

Issue 10879042: Move IsHostOnly() from HistoryURL provider to HistoryMatch (Closed)

Created:
8 years, 4 months ago by Mark P
Modified:
8 years, 3 months ago
CC:
chromium-reviews, James Su
Visibility:
Public.

Description

Move IsHostOnly() from HistoryURL provider to HistoryMatch HistoryMatch is used by both URLs from history providers. I will soon need this function in the HistoryQuickProvider. For reference: I searched users of GURL who do something similar. I found a handful, but all these uses are either in test or DCHECKs (like this one). (The most common equivalent use is DCHECK(url == url.GetWithEmptyPath()); .) Given that no one else seems to use this kind of logic in production Chrome, I didn't think I should clutter the GURL interface with a function that doesn't add much value. Hence I'm leaving it the autocomplete part of the code for now. BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153421

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove extra sentence in comment. #

Total comments: 2

Patch Set 3 : Vertical space. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -14 lines) Patch
M chrome/browser/autocomplete/history_provider_util.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/history_provider_util.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider.cc View 3 chunks +3 lines, -14 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Mark P
Once you okay it, I'll get Peter to approve it too. --mark
8 years, 4 months ago (2012-08-23 17:09:27 UTC) #1
mrossetti
LGTM https://chromiumcodereview.appspot.com/10879042/diff/1/chrome/browser/autocomplete/history_provider_util.h File chrome/browser/autocomplete/history_provider_util.h (right): https://chromiumcodereview.appspot.com/10879042/diff/1/chrome/browser/autocomplete/history_provider_util.h#newcode31 chrome/browser/autocomplete/history_provider_util.h:31: // I'm not bloating gurl.h with an apparently ...
8 years, 4 months ago (2012-08-23 17:18:36 UTC) #2
Mark P
https://chromiumcodereview.appspot.com/10879042/diff/1/chrome/browser/autocomplete/history_provider_util.h File chrome/browser/autocomplete/history_provider_util.h (right): https://chromiumcodereview.appspot.com/10879042/diff/1/chrome/browser/autocomplete/history_provider_util.h#newcode31 chrome/browser/autocomplete/history_provider_util.h:31: // I'm not bloating gurl.h with an apparently not-generally-needed ...
8 years, 4 months ago (2012-08-23 17:20:56 UTC) #3
Mark P
Peter, This should be easy to review. --mark
8 years, 4 months ago (2012-08-23 17:21:53 UTC) #4
Peter Kasting
LGTM https://chromiumcodereview.appspot.com/10879042/diff/3001/chrome/browser/autocomplete/history_provider_util.cc File chrome/browser/autocomplete/history_provider_util.cc (right): https://chromiumcodereview.appspot.com/10879042/diff/3001/chrome/browser/autocomplete/history_provider_util.cc#newcode6 chrome/browser/autocomplete/history_provider_util.cc:6: #include "base/logging.h" Nit: Alphabetical
8 years, 3 months ago (2012-08-25 04:38:57 UTC) #5
Mark P
https://chromiumcodereview.appspot.com/10879042/diff/3001/chrome/browser/autocomplete/history_provider_util.cc File chrome/browser/autocomplete/history_provider_util.cc (right): https://chromiumcodereview.appspot.com/10879042/diff/3001/chrome/browser/autocomplete/history_provider_util.cc#newcode6 chrome/browser/autocomplete/history_provider_util.cc:6: #include "base/logging.h" On 2012/08/25 04:38:57, Peter Kasting wrote: > ...
8 years, 3 months ago (2012-08-26 01:23:04 UTC) #6
Peter Kasting
Yeah, you're right. The vertical space helps a lot, I wouldn't have thought about that ...
8 years, 3 months ago (2012-08-26 03:27:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/10879042/3003
8 years, 3 months ago (2012-08-26 16:17:59 UTC) #8
commit-bot: I haz the power
8 years, 3 months ago (2012-08-26 18:35:13 UTC) #9
Change committed as 153421

Powered by Google App Engine
This is Rietveld 408576698