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

Issue 896173002: Clean-up refactoring of chrome_content_browser_client to use GetPermissionContext consistently. (Closed)

Created:
5 years, 10 months ago by timvolodine
Modified:
5 years, 10 months ago
Reviewers:
Peter Beverloo, Nico
CC:
chromium-reviews, zea+watch_chromium.org, Miguel Garcia
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean-up refactoring of chrome_content_browser_client to use GetPermissionContext consistently. Eliminate some duplicate code now that PermissionContextBase is the base class for all other permission contexts and we have a helper function GetPermissionContext to obtain the proper permission context class depending on permission type. Also move PermissionToContentSetting to anonymous namespace. BUG= Committed: https://crrev.com/3d4b61cf6e1ece497318d9b6c5110000445dae6b Cr-Commit-Position: refs/heads/master@{#314866}

Patch Set 1 #

Patch Set 2 : rebase + fix compile #

Patch Set 3 : fix linker #

Total comments: 4

Patch Set 4 : fix comments #

Total comments: 2

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -111 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 4 chunks +35 lines, -111 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_permission_context.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_permission_context.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
timvolodine
+ peter@ for push_messaging_permission_context
5 years, 10 months ago (2015-02-04 14:45:35 UTC) #2
timvolodine
+thakis@: as chrome/browser owner
5 years, 10 months ago (2015-02-04 14:46:21 UTC) #4
Peter Beverloo
Thanks Tim! One comment and one question. https://codereview.chromium.org/896173002/diff/40001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/896173002/diff/40001/chrome/browser/chrome_content_browser_client.cc#newcode634 chrome/browser/chrome_content_browser_client.cc:634: NOTIMPLEMENTED(); While ...
5 years, 10 months ago (2015-02-04 14:56:53 UTC) #5
timvolodine
Peter, thanks for the comments, replies below. https://codereview.chromium.org/896173002/diff/40001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/896173002/diff/40001/chrome/browser/chrome_content_browser_client.cc#newcode634 chrome/browser/chrome_content_browser_client.cc:634: NOTIMPLEMENTED(); On ...
5 years, 10 months ago (2015-02-04 16:15:37 UTC) #6
Nico
browser_client lgtm Nice! https://codereview.chromium.org/896173002/diff/60001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/896173002/diff/60001/chrome/browser/chrome_content_browser_client.cc#newcode657 chrome/browser/chrome_content_browser_client.cc:657: ContentSettingsType PermissionToContentSetting( nit: feels like this ...
5 years, 10 months ago (2015-02-04 16:43:32 UTC) #7
Peter Beverloo
lgtm
5 years, 10 months ago (2015-02-05 17:24:25 UTC) #9
timvolodine
thanks for the review! https://codereview.chromium.org/896173002/diff/60001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/896173002/diff/60001/chrome/browser/chrome_content_browser_client.cc#newcode657 chrome/browser/chrome_content_browser_client.cc:657: ContentSettingsType PermissionToContentSetting( On 2015/02/04 16:43:32, ...
5 years, 10 months ago (2015-02-05 18:19:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/896173002/80001
5 years, 10 months ago (2015-02-05 20:22:18 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-05 20:26:01 UTC) #13
commit-bot: I haz the power
5 years, 10 months ago (2015-02-05 20:26:57 UTC) #14
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3d4b61cf6e1ece497318d9b6c5110000445dae6b
Cr-Commit-Position: refs/heads/master@{#314866}

Powered by Google App Engine
This is Rietveld 408576698