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

Issue 23514025: Use GetForBrowserContext instead of GetForProfile for DriveNotificationManager (Closed)

Created:
7 years, 3 months ago by tzik
Modified:
7 years, 3 months ago
Reviewers:
kinuko, satorux1
CC:
chromium-reviews, nhiroki+watch_chromium.org, tzik+watch_chromium.org, kinuko+watch, kinaba
Visibility:
Public.

Description

Use GetForBrowserContext instead of GetForProfile for DriveNotificationManager We've replaced ProfileKeyedService with BrowserContextKeyedService, but some of them still use Profile with cast. This CL removes Profile dependency from DriveNotificationManager and make DriveNotificationManagerFactory to use BrowserContext instead of Profile. NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220933

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : +DCHECK #

Patch Set 4 : reset invalidation_service_ on Shutdown #

Total comments: 2

Patch Set 5 : s/static_cast<Profile*>/Profile::FromBrowserContext/ #

Patch Set 6 : rebase & resolve conflict #

Messages

Total messages: 13 (0 generated)
tzik
Kinuko-san, Satoru-san, may I make an interface clean up? Many of BrowserContextKeyedService still have GetForProfile, ...
7 years, 3 months ago (2013-09-02 06:04:36 UTC) #1
kinuko
On 2013/09/02 06:04:36, tzik wrote: > Kinuko-san, Satoru-san, may I make an interface clean up? ...
7 years, 3 months ago (2013-09-02 07:04:59 UTC) #2
kinuko
https://codereview.chromium.org/23514025/diff/11001/chrome/browser/drive/drive_notification_manager_factory.cc File chrome/browser/drive/drive_notification_manager_factory.cc (right): https://codereview.chromium.org/23514025/diff/11001/chrome/browser/drive/drive_notification_manager_factory.cc#newcode48 chrome/browser/drive/drive_notification_manager_factory.cc:48: static_cast<Profile*>(context))); Profile::FromBrowserContext(context) would be better?
7 years, 3 months ago (2013-09-02 07:05:10 UTC) #3
tzik
On 2013/09/02 07:04:59, kinuko wrote: > On 2013/09/02 06:04:36, tzik wrote: > > Kinuko-san, Satoru-san, ...
7 years, 3 months ago (2013-09-02 08:42:29 UTC) #4
tzik
https://codereview.chromium.org/23514025/diff/11001/chrome/browser/drive/drive_notification_manager_factory.cc File chrome/browser/drive/drive_notification_manager_factory.cc (right): https://codereview.chromium.org/23514025/diff/11001/chrome/browser/drive/drive_notification_manager_factory.cc#newcode48 chrome/browser/drive/drive_notification_manager_factory.cc:48: static_cast<Profile*>(context))); On 2013/09/02 07:05:11, kinuko wrote: > Profile::FromBrowserContext(context) would ...
7 years, 3 months ago (2013-09-02 08:42:36 UTC) #5
kinuko
lgtm, with an assumption that converting GetForProfile to GetForBrowserContext is encouraged in general. Can you ...
7 years, 3 months ago (2013-09-02 09:00:05 UTC) #6
satorux1
*/chormeos/* LGTM
7 years, 3 months ago (2013-09-03 05:34:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tzik@chromium.org/23514025/21001
7 years, 3 months ago (2013-09-03 06:16:31 UTC) #8
commit-bot: I haz the power
Failed to apply patch for chrome/chrome_browser.gypi: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-09-03 06:16:40 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tzik@chromium.org/23514025/31001
7 years, 3 months ago (2013-09-03 08:24:04 UTC) #10
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years, 3 months ago (2013-09-03 12:05:11 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tzik@chromium.org/23514025/31001
7 years, 3 months ago (2013-09-03 12:36:10 UTC) #12
commit-bot: I haz the power
7 years, 3 months ago (2013-09-03 12:36:53 UTC) #13
Message was sent while issue was closed.
Change committed as 220933

Powered by Google App Engine
This is Rietveld 408576698