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

Issue 10676012: De-dupe input encodings in TemplateURLs. (Closed)

Created:
8 years, 6 months ago by Peter Kasting
Modified:
8 years, 6 months ago
Reviewers:
SteveT
CC:
chromium-reviews
Visibility:
Public.

Description

De-dupe input encodings in TemplateURLs. BUG=134695 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=144387

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -6 lines) Patch
M chrome/browser/search_engines/template_url_service.cc View 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_sync_unittest.cc View 1 1 chunk +42 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_unittest.cc View 1 1 chunk +41 lines, -1 line 0 comments Download
M chrome/browser/search_engines/util.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/util.cc View 2 chunks +26 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Peter Kasting
8 years, 6 months ago (2012-06-27 00:56:54 UTC) #1
SteveT
Comment and a nit. lgtm upon fixing the compilation and test issues. https://chromiumcodereview.appspot.com/10676012/diff/1/chrome/browser/search_engines/template_url_service_sync_unittest.cc File chrome/browser/search_engines/template_url_service_sync_unittest.cc ...
8 years, 6 months ago (2012-06-27 01:11:14 UTC) #2
SteveT
One more comment after seeing the test results. https://chromiumcodereview.appspot.com/10676012/diff/1/chrome/browser/search_engines/template_url_service_sync_unittest.cc File chrome/browser/search_engines/template_url_service_sync_unittest.cc (right): https://chromiumcodereview.appspot.com/10676012/diff/1/chrome/browser/search_engines/template_url_service_sync_unittest.cc#newcode1389 chrome/browser/search_engines/template_url_service_sync_unittest.cc:1389: ASSERT_TRUE(processor()->contains_guid("keyword")); ...
8 years, 6 months ago (2012-06-27 01:45:24 UTC) #3
Peter Kasting
8 years, 6 months ago (2012-06-27 03:35:40 UTC) #4
http://codereview.chromium.org/10676012/diff/1/chrome/browser/search_engines/...
File chrome/browser/search_engines/template_url_service_sync_unittest.cc
(right):

http://codereview.chromium.org/10676012/diff/1/chrome/browser/search_engines/...
chrome/browser/search_engines/template_url_service_sync_unittest.cc:1389:
ASSERT_TRUE(processor()->contains_guid("keyword"));
On 2012/06/27 01:45:24, SteveT wrote:
> You didn't actually set the guid above?

Both these observations are the sort of obvious thing I miss when I can't
actually run my tests locally :P

http://codereview.chromium.org/10676012/diff/1/chrome/browser/search_engines/...
File chrome/browser/search_engines/template_url_service_unittest.cc (right):

http://codereview.chromium.org/10676012/diff/1/chrome/browser/search_engines/...
chrome/browser/search_engines/template_url_service_unittest.cc:1501:
ASSERT_TRUE(loaded_url != NULL);
On 2012/06/27 01:11:14, SteveT wrote:
> nit: I find it a bit odd that in the other file, you ASSERT_FALSE(keyword ==
> NULL) where as here you ASSERT_TRUE. Do you have a preferred way to check
> pointers within assertions? If so, use that consistently.

I think this partly comes from different people writing these bits... in both
files, I copy and pasted existing code.

I'll fix.

Powered by Google App Engine
This is Rietveld 408576698