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

Issue 1034143002: Content settings clean-up: Clarify resource identifier & get rid of NO_RESOURCE_IDENTIFIER. (Closed)

Created:
5 years, 9 months ago by Deepak
Modified:
5 years, 8 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, mlamouri+watch-notifications_chromium.org, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, peter+watch_chromium.org, wjia+watch_chromium.org, markusheintz_, msramek
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Content settings clean-up: Clarify resource identifier & get rid of NO_RESOURCE_IDENTIFIER. current NO_RESOURCE_IDENTIFIER usage is aganinst style guidelines. Made a class in content_settings.h and using function to get std::string() To get rid of NO_RESOURCE_IDENTIFIER. Now no need to add content_settings_provider.h in places like desktop_notification_profile_util.cc and other places. BUG=399592 Committed: https://crrev.com/76a6893ca1e3ef72d9d371c50c20c2600cca0e60 Cr-Commit-Position: refs/heads/master@{#324362}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Changes as per review comments. #

Patch Set 3 : Changes as per review comments. #

Patch Set 4 : Changes as per review comments. #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : Changes as per review comments. #

Total comments: 1

Patch Set 7 : #

Patch Set 8 : Addressing nit. #

Messages

Total messages: 36 (12 generated)
Deepak
This is a small clean up for removing NO_RESOURCE_IDENTIFIER macro. That is against style guidelines. ...
5 years, 9 months ago (2015-03-26 07:13:53 UTC) #2
markusheintz_
Thanks a lot Deepak for looking into this. Martin, Raymes do you have any preferences ...
5 years, 9 months ago (2015-03-27 10:27:34 UTC) #3
Deepak
Thanks for review. Changes done as suggested. PTAL Thanks. https://codereview.chromium.org/1034143002/diff/1/chrome/browser/notifications/platform_notification_service_impl.cc File chrome/browser/notifications/platform_notification_service_impl.cc (right): https://codereview.chromium.org/1034143002/diff/1/chrome/browser/notifications/platform_notification_service_impl.cc#newcode180 chrome/browser/notifications/platform_notification_service_impl.cc:180: ...
5 years, 9 months ago (2015-03-27 11:40:04 UTC) #6
msramek
I agree that all those occurrences should not include provider.h just to use this macro, ...
5 years, 9 months ago (2015-03-27 12:30:46 UTC) #8
raymes
> Instead of having two separate classes for empty and non-empty identifier, > shouldn't we ...
5 years, 8 months ago (2015-03-30 00:54:13 UTC) #9
Deepak
@msramek & @raymes Thanks for review . I have replaced NoResourceIdentifier::GetResourceIdentifier() with content_settings::ResourceIdentifier(). removed NoResourceIdentifier ...
5 years, 8 months ago (2015-04-07 06:23:06 UTC) #10
msramek
https://codereview.chromium.org/1034143002/diff/60001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/1034143002/diff/60001/chrome/browser/media/media_stream_devices_controller.cc#newcode20 chrome/browser/media/media_stream_devices_controller.cc:20: #include "components/content_settings/core/browser/content_settings_provider.h" Remove this inclusion? https://codereview.chromium.org/1034143002/diff/60001/components/content_settings/core/browser/content_settings_provider.h File components/content_settings/core/browser/content_settings_provider.h (left): ...
5 years, 8 months ago (2015-04-07 12:01:40 UTC) #11
Deepak
Changes done as suggested. PTAL. https://codereview.chromium.org/1034143002/diff/60001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/1034143002/diff/60001/chrome/browser/media/media_stream_devices_controller.cc#newcode20 chrome/browser/media/media_stream_devices_controller.cc:20: #include "components/content_settings/core/browser/content_settings_provider.h" On 2015/04/07 ...
5 years, 8 months ago (2015-04-07 13:08:14 UTC) #12
msramek
LGTM (non-owner).
5 years, 8 months ago (2015-04-07 13:17:42 UTC) #13
Deepak
On 2015/04/07 13:17:42, msramek wrote: xhwang for chrome/browser/media/media_capture_devices_dispatcher.cc chrome/browser/media/media_stream_devices_controller.cc Jun Mukai for desktop_notification_profile_util.cc platform_notification_service_impl.cc Bernhard ...
5 years, 8 months ago (2015-04-07 13:22:49 UTC) #14
xhwang
s/xhwang/perkj perj: Please OWNERS review changes in chrome/browser/media/media_capture_devices_dispatcher.cc chrome/browser/media/media_stream_devices_controller.cc
5 years, 8 months ago (2015-04-07 16:15:19 UTC) #17
Jun Mukai
c/b/notifications lgtm
5 years, 8 months ago (2015-04-07 17:54:15 UTC) #18
Deepak
Friendly Ping to perkj for chrome/browser/media/media_capture_devices_dispatcher.cc chrome/browser/media/media_stream_devices_controller.cc Bernhard Bauer for components/content_settings/XXX
5 years, 8 months ago (2015-04-08 02:56:22 UTC) #19
Bernhard Bauer
lgtm
5 years, 8 months ago (2015-04-08 08:25:22 UTC) #20
perkj_chrome
lgtm https://codereview.chromium.org/1034143002/diff/100001/chrome/browser/media/media_capture_devices_dispatcher.cc File chrome/browser/media/media_capture_devices_dispatcher.cc (right): https://codereview.chromium.org/1034143002/diff/100001/chrome/browser/media/media_capture_devices_dispatcher.cc#newcode426 chrome/browser/media/media_capture_devices_dispatcher.cc:426: CONTENT_SETTING_ALLOW) { is it clang format that does ...
5 years, 8 months ago (2015-04-08 10:51:15 UTC) #21
Deepak
On 2015/04/08 10:51:15, perkj wrote: > lgtm > > https://codereview.chromium.org/1034143002/diff/100001/chrome/browser/media/media_capture_devices_dispatcher.cc > File chrome/browser/media/media_capture_devices_dispatcher.cc (right): > ...
5 years, 8 months ago (2015-04-08 11:12:08 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1034143002/140001
5 years, 8 months ago (2015-04-08 11:13:12 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/54793)
5 years, 8 months ago (2015-04-08 11:23:57 UTC) #27
Deepak
@sergeyu Please give approval for chrome/browser/media/media_capture_devices_dispatcher.cc chrome/browser/media/media_stream_devices_controller.cc Thanks
5 years, 8 months ago (2015-04-08 11:26:39 UTC) #29
Deepak
On 2015/04/08 11:26:39, Deepak wrote: @xhwang Please give approval for chrome/browser/media/media_capture_devices_dispatcher.cc chrome/browser/media/media_stream_devices_controller.cc unfortunately with @perkj ...
5 years, 8 months ago (2015-04-08 11:32:24 UTC) #30
Sergey Ulanov
chrome/browser/media - LGTM
5 years, 8 months ago (2015-04-08 17:04:43 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1034143002/140001
5 years, 8 months ago (2015-04-09 02:44:03 UTC) #34
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 8 months ago (2015-04-09 04:06:06 UTC) #35
commit-bot: I haz the power
5 years, 8 months ago (2015-04-09 04:06:48 UTC) #36
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/76a6893ca1e3ef72d9d371c50c20c2600cca0e60
Cr-Commit-Position: refs/heads/master@{#324362}

Powered by Google App Engine
This is Rietveld 408576698