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

Issue 10382091: Support scheme-setting for GoogleURLTracker. (Closed)

Created:
8 years, 7 months ago by Peter Kasting
Modified:
8 years, 7 months ago
Reviewers:
Ilya Sherman
CC:
chromium-reviews
Visibility:
Public.

Description

Support scheme-setting for GoogleURLTracker. This switches the searchdomaincheck request from format=domain (".google.com") to format=url ("http://www.google.com/"). This in turn allows the server to direct us to use HTTPS searches by default, which should save a redirect on each search over the current situation when it's applicable. We hide this detail from the user; we continue to prompt about TLD changes, but we don't prompt about scheme changes. BUG=96636 TEST=Make sure the cookie store has cookies such that you get HTTPS search by default on Google. After this patch, doing a search should not involve a redirect through HTTP. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=136205

Patch Set 1 #

Total comments: 12

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+296 lines, -63 lines) Patch
M chrome/browser/google/google_url_tracker.h View 4 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/google/google_url_tracker.cc View 1 8 chunks +68 lines, -31 lines 0 comments Download
M chrome/browser/google/google_url_tracker_unittest.cc View 1 23 chunks +220 lines, -27 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Peter Kasting
8 years, 7 months ago (2012-05-09 21:48:14 UTC) #1
Ilya Sherman
LGTM https://chromiumcodereview.appspot.com/10382091/diff/1/chrome/browser/google/google_url_tracker.cc File chrome/browser/google/google_url_tracker.cc (right): https://chromiumcodereview.appspot.com/10382091/diff/1/chrome/browser/google/google_url_tracker.cc#newcode319 chrome/browser/google/google_url_tracker.cc:319: google_util::DISALLOW_SUBDOMAIN)) nit: Please indent four more spaces https://chromiumcodereview.appspot.com/10382091/diff/1/chrome/browser/google/google_url_tracker.cc#newcode367 ...
8 years, 7 months ago (2012-05-09 22:14:44 UTC) #2
Peter Kasting
Submitting. https://chromiumcodereview.appspot.com/10382091/diff/1/chrome/browser/google/google_url_tracker.cc File chrome/browser/google/google_url_tracker.cc (right): https://chromiumcodereview.appspot.com/10382091/diff/1/chrome/browser/google/google_url_tracker.cc#newcode319 chrome/browser/google/google_url_tracker.cc:319: google_util::DISALLOW_SUBDOMAIN)) On 2012/05/09 22:14:44, Ilya Sherman wrote: > ...
8 years, 7 months ago (2012-05-09 23:24:18 UTC) #3
Ilya Sherman
8 years, 7 months ago (2012-05-09 23:30:21 UTC) #4
https://chromiumcodereview.appspot.com/10382091/diff/1/chrome/browser/google/...
File chrome/browser/google/google_url_tracker.cc (right):

https://chromiumcodereview.appspot.com/10382091/diff/1/chrome/browser/google/...
chrome/browser/google/google_url_tracker.cc:372: for (InfoBarMap::iterator
i(infobar_map_.begin());
On 2012/05/09 23:24:18, Peter Kasting wrote:
> On 2012/05/09 22:14:44, Ilya Sherman wrote:
> > nit: Please use "it" rather than "i" for the iterator name.
> 
> I don't know why but it really bugs me when people do this!  "i" seems like a
> perfectly good name for any kind of loop index variable :)

"i" is an index/number; "it" is an iterator, which is a pointer.  I'd strongly
prefer "it" vs. "i" -- that's a very established, if unofficial, stylistic
convention in the Chromium source (at least all the parts that I've worked
with...)

https://chromiumcodereview.appspot.com/10382091/diff/1/chrome/browser/google/...
File chrome/browser/google/google_url_tracker_unittest.cc (right):

https://chromiumcodereview.appspot.com/10382091/diff/1/chrome/browser/google/...
chrome/browser/google/google_url_tracker_unittest.cc:5: #include
"chrome/browser/google/google_url_tracker.h"
On 2012/05/09 23:24:18, Peter Kasting wrote:
> On 2012/05/09 22:14:44, Ilya Sherman wrote:
> > nit: No need to promote this to the top of the file, since it's not the
header
> > file corresponding to the test file (in fact, there is no such header file
for
> > this test file).
> 
> I had thought so too, but another readability reviewer caused me to recheck
>
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Names_and_Orde...
> :
> 
> "In dir/foo.cc or dir/foo_test.cc, whose main purpose is to implement or test
> the stuff in dir2/foo2.h, order your includes as follows: <puts foo2.h first>"
> 
> Note the test-specific callout.

Ah, interesting.  Good to know, thanks for pointing that out.

Powered by Google App Engine
This is Rietveld 408576698