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

Issue 561813002: Move the logic for creating data: URLs out of DesktopNotificationService. (Closed)

Created:
6 years, 3 months ago by Peter Beverloo
Modified:
6 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Move the logic for creating data: URLs out of DesktopNotificationService. This code is only used by the Notification constructor, and doesn't have to be a public method on a class that's otherwise unrelated to it. Also get rid of caching the UI manager in the service. All callsites of the constructor passed in NULL, and BrowserProcess::notification_ui_manager() actually does the caching for us. TBR=jochen BUG= Committed: https://crrev.com/b1f28c8f2c486bf5891a56dd3af00fe93b0a30d3 Cr-Commit-Position: refs/heads/master@{#294414}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Also get rid of GetUIManager() #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -124 lines) Patch
M chrome/browser/notifications/desktop_notification_service.h View 1 4 chunks +10 lines, -30 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 1 6 chunks +2 lines, -71 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service_factory.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/desktop_notification_service_factory.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/notifications/notification.h View 1 2 3 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/notifications/notification.cc View 1 2 4 chunks +1 line, -11 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (3 generated)
Peter Beverloo
Let's start shaving bits off DNS before splitting off a permission class. The entire text-to-data-URL ...
6 years, 3 months ago (2014-09-10 17:06:09 UTC) #2
Jun Mukai
https://codereview.chromium.org/561813002/diff/1/chrome/browser/notifications/notification.cc File chrome/browser/notifications/notification.cc (right): https://codereview.chromium.org/561813002/diff/1/chrome/browser/notifications/notification.cc#newcode9 chrome/browser/notifications/notification.cc:9: #include "chrome/browser/notifications/desktop_notification_service.h" You can remove this include right? https://codereview.chromium.org/561813002/diff/20001/chrome/browser/notifications/notification.cc ...
6 years, 3 months ago (2014-09-10 18:18:59 UTC) #3
Peter Beverloo
https://codereview.chromium.org/561813002/diff/1/chrome/browser/notifications/notification.cc File chrome/browser/notifications/notification.cc (right): https://codereview.chromium.org/561813002/diff/1/chrome/browser/notifications/notification.cc#newcode9 chrome/browser/notifications/notification.cc:9: #include "chrome/browser/notifications/desktop_notification_service.h" On 2014/09/10 18:18:59, Jun Mukai wrote: > ...
6 years, 3 months ago (2014-09-11 16:02:26 UTC) #4
Jun Mukai
lgtm!!
6 years, 3 months ago (2014-09-11 16:36:38 UTC) #5
dewittj
lgtm
6 years, 3 months ago (2014-09-11 16:40:08 UTC) #6
Peter Beverloo
+jochen for chrome/test/. TBR'ing because it's removing an argument from testing code, reviewed by OWNERS ...
6 years, 3 months ago (2014-09-11 16:53:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/561813002/40001
6 years, 3 months ago (2014-09-11 16:56:45 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 90a2921899a5790bfd3861ea314f694905f729d5
6 years, 3 months ago (2014-09-11 17:40:22 UTC) #11
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 18:42:50 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b1f28c8f2c486bf5891a56dd3af00fe93b0a30d3
Cr-Commit-Position: refs/heads/master@{#294414}

Powered by Google App Engine
This is Rietveld 408576698