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

Issue 2811793007: Make several methods of TemplateUrlService const (Closed)

Created:
3 years, 8 months ago by jeffschiller
Modified:
3 years, 8 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make several methods of TemplateUrlService const BUG=672364 Review-Url: https://codereview.chromium.org/2811793007 Cr-Commit-Position: refs/heads/master@{#464630} Committed: https://chromium.googlesource.com/chromium/src/+/9c4df02e620f303e9e3f65818323bc3dc2dc29aa

Patch Set 1 #

Total comments: 1

Patch Set 2 : Remove const from methods that return pointers (for now). #

Patch Set 3 : Remove more const qualifiers from methods that return pointers #

Patch Set 4 : Remove extra line #

Total comments: 2

Patch Set 5 : Make it actually compile by const_casting this in a few const member functions that now call non-co… #

Patch Set 6 : Revert some unnecessary clan formatting per review comments #

Patch Set 7 : Revert some unnecessary clang formatting per review comments #

Total comments: 3

Patch Set 8 : Remove unnecessary local variable and add a couple TODOs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -21 lines) Patch
M components/search_engines/template_url_service.h View 1 2 3 4 5 6 chunks +10 lines, -9 lines 0 comments Download
M components/search_engines/template_url_service.cc View 1 2 3 4 5 6 7 7 chunks +19 lines, -12 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
jeffschiller
Hi Peter, I thought I'd tackle a good-first-bug in Chrome :) Thanks, Jeff
3 years, 8 months ago (2017-04-13 03:36:06 UTC) #3
Peter Kasting
Yay for code cleanup! https://codereview.chromium.org/2811793007/diff/1/components/search_engines/template_url_service.h File components/search_engines/template_url_service.h (right): https://codereview.chromium.org/2811793007/diff/1/components/search_engines/template_url_service.h#newcode169 components/search_engines/template_url_service.h:169: TemplateURL* GetTemplateURLForKeyword(const base::string16& keyword) const; ...
3 years, 8 months ago (2017-04-13 04:04:52 UTC) #4
jeffschiller
On 2017/04/13 at 04:04:52, pkasting wrote: > Yay for code cleanup! > > https://codereview.chromium.org/2811793007/diff/1/components/search_engines/template_url_service.h > ...
3 years, 8 months ago (2017-04-13 05:53:56 UTC) #5
Peter Kasting
LGTM https://codereview.chromium.org/2811793007/diff/60001/components/search_engines/template_url_service.cc File components/search_engines/template_url_service.cc (right): https://codereview.chromium.org/2811793007/diff/60001/components/search_engines/template_url_service.cc#newcode1440 components/search_engines/template_url_service.cc:1440: TemplateURL* engine2) { Similarly, can probably revert this ...
3 years, 8 months ago (2017-04-13 06:15:35 UTC) #6
jeffschiller
On 2017/04/13 at 06:15:35, pkasting wrote: > LGTM > > https://codereview.chromium.org/2811793007/diff/60001/components/search_engines/template_url_service.cc > File components/search_engines/template_url_service.cc (right): ...
3 years, 8 months ago (2017-04-13 21:55:57 UTC) #7
Peter Kasting
LGTM with one concern https://codereview.chromium.org/2811793007/diff/120001/components/search_engines/template_url_service.cc File components/search_engines/template_url_service.cc (right): https://codereview.chromium.org/2811793007/diff/120001/components/search_engines/template_url_service.cc#newcode855 components/search_engines/template_url_service.cc:855: const_cast<TemplateURLService*>(this)->GetTemplateURLForKeyword(keyword); If you're 100% sure ...
3 years, 8 months ago (2017-04-13 22:42:52 UTC) #8
jeffschiller
On 2017/04/13 at 22:42:52, pkasting wrote: > LGTM with one concern > > https://codereview.chromium.org/2811793007/diff/120001/components/search_engines/template_url_service.cc > ...
3 years, 8 months ago (2017-04-13 23:46:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2811793007/140001
3 years, 8 months ago (2017-04-13 23:48:59 UTC) #12
commit-bot: I haz the power
3 years, 8 months ago (2017-04-14 00:48:42 UTC) #15
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/9c4df02e620f303e9e3f65818323...

Powered by Google App Engine
This is Rietveld 408576698