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

Issue 12298015: Change NotifyAppList*() functions into observers on a ProfileKeyedService. (Closed)

Created:
7 years, 10 months ago by koz (OOO until 15th September)
Modified:
7 years, 10 months ago
Reviewers:
xiyuan, benwells, Nico, sky, tfarina
CC:
chromium-reviews, Aaron Boodman, ben+watch_chromium.org, sadrul, tfarina, chromium-apps-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Visibility:
Public.

Description

Change NotifyAppList*() functions into observers on a ProfileKeyedService. This causes the events to also be delivered to the app list on ChromeOS, which would otherwise require separate plumbing. BUG=152854 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184604

Patch Set 1 #

Total comments: 10

Patch Set 2 : respond to comments #

Total comments: 2

Patch Set 3 : respond to comments #

Patch Set 4 : remove notifications #

Patch Set 5 : nits #

Total comments: 22

Patch Set 6 : respond to comments #

Total comments: 14

Patch Set 7 : respond to comments #

Total comments: 16

Patch Set 8 : respond to comments #

Patch Set 9 : show app list on install so it receives the notifications #

Patch Set 10 : remove dead code on windows #

Patch Set 11 : fix mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -200 lines) Patch
chrome/browser/extensions/api/webstore_private/webstore_private_api.cc View 1 2 3 4 5 6 7 8 5 chunks +17 lines, -16 lines 0 comments Download
A chrome/browser/extensions/install_observer.h View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/extensions/install_tracker.h View 1 2 3 4 5 6 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/extensions/install_tracker.cc View 1 2 3 4 5 6 7 1 chunk +47 lines, -0 lines 0 comments Download
A chrome/browser/extensions/install_tracker_factory.h View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/extensions/install_tracker_factory.cc View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_dependency_manager.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_util.h View 1 2 3 4 5 1 chunk +0 lines, -16 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.h View 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.cc View 1 chunk +0 lines, -19 lines 0 comments Download
M chrome/browser/ui/app_list/apps_model_builder.h View 1 2 3 4 5 6 7 3 chunks +13 lines, -12 lines 0 comments Download
M chrome/browser/ui/app_list/apps_model_builder.cc View 1 2 3 4 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_controller_ash.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -19 lines 0 comments Download
M chrome/browser/ui/cocoa/app_list/app_list_controller_cocoa.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -18 lines 0 comments Download
M chrome/browser/ui/extensions/extension_install_ui_default.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/app_list/app_list_controller_win.cc View 1 2 3 4 5 6 7 8 9 4 chunks +0 lines, -85 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
koz (OOO until 15th September)
Hi Xiyuan, I'm trying to unify the ChromeOS and windows app lists so that they ...
7 years, 10 months ago (2013-02-18 07:40:44 UTC) #1
benwells
https://codereview.chromium.org/12298015/diff/1/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc File chrome/browser/extensions/api/webstore_private/webstore_private_api.cc (right): https://codereview.chromium.org/12298015/diff/1/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc#newcode30 chrome/browser/extensions/api/webstore_private/webstore_private_api.cc:30: #include "chrome/browser/ui/app_list/app_list_util.h" Is this include still needed? https://codereview.chromium.org/12298015/diff/1/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc#newcode477 chrome/browser/extensions/api/webstore_private/webstore_private_api.cc:477: ...
7 years, 10 months ago (2013-02-18 07:56:35 UTC) #2
koz (OOO until 15th September)
https://codereview.chromium.org/12298015/diff/1/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc File chrome/browser/extensions/api/webstore_private/webstore_private_api.cc (right): https://codereview.chromium.org/12298015/diff/1/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc#newcode30 chrome/browser/extensions/api/webstore_private/webstore_private_api.cc:30: #include "chrome/browser/ui/app_list/app_list_util.h" On 2013/02/18 07:56:36, benwells wrote: > Is ...
7 years, 10 months ago (2013-02-19 03:20:36 UTC) #3
benwells
lgtm
7 years, 10 months ago (2013-02-19 03:37:12 UTC) #4
xiyuan
LGTM In general, I don't like keep things around when they are not visible and ...
7 years, 10 months ago (2013-02-19 17:20:42 UTC) #5
koz (OOO until 15th September)
I'd be fine with that approach. One thing to consider about it is that it ...
7 years, 10 months ago (2013-02-20 00:12:08 UTC) #6
koz (OOO until 15th September)
+OWNERS thakis: chrome/browser/ui/cocoa sky: chrome/common
7 years, 10 months ago (2013-02-20 00:13:57 UTC) #7
xiyuan
On 2013/02/20 00:12:08, koz wrote: > I'd be fine with that approach. One thing to ...
7 years, 10 months ago (2013-02-20 00:25:06 UTC) #8
sky
chrome/common LGTM
7 years, 10 months ago (2013-02-20 00:42:54 UTC) #9
Nico
Isn't this backwards? I think we prefer dedicated, narrower interfaces over notification soup.
7 years, 10 months ago (2013-02-20 09:46:51 UTC) #10
tfarina
No, if this is using content::Notification API, then don't do this!
7 years, 10 months ago (2013-02-20 12:57:45 UTC) #11
tfarina
There is one bug filed for not using Notifications and I've been slowly converting some ...
7 years, 10 months ago (2013-02-20 12:59:55 UTC) #12
Jói
I think switching to NotificationService instead of a dedicated callback interface is definitely backwards, as ...
7 years, 10 months ago (2013-02-20 13:09:48 UTC) #13
benwells
+yoz I understand; this is something we discussed quite a bit before making this change. ...
7 years, 10 months ago (2013-02-20 21:13:50 UTC) #14
Yoyo Zhou
On 2013/02/20 21:13:50, benwells wrote: > +yoz > > I understand; this is something we ...
7 years, 10 months ago (2013-02-20 21:17:42 UTC) #15
koz (OOO until 15th September)
On 2013/02/20 21:17:42, Yoyo Zhou wrote: > On 2013/02/20 21:13:50, benwells wrote: > > +yoz ...
7 years, 10 months ago (2013-02-20 23:21:37 UTC) #16
tfarina
On Wed, Feb 20, 2013 at 8:21 PM, <koz@chromium.org> wrote: > Right - if there ...
7 years, 10 months ago (2013-02-21 00:36:08 UTC) #17
koz (OOO until 15th September)
Ok, cool. I've refactored this to use observers of a PKS rather than notifications. LGTY?
7 years, 10 months ago (2013-02-21 05:19:05 UTC) #18
benwells
On 2013/02/21 05:19:05, koz wrote: > Ok, cool. I've refactored this to use observers of ...
7 years, 10 months ago (2013-02-21 06:14:05 UTC) #19
benwells
oops, here are the nits. https://codereview.chromium.org/12298015/diff/23001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc File chrome/browser/extensions/api/webstore_private/webstore_private_api.cc (right): https://codereview.chromium.org/12298015/diff/23001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc#newcode41 chrome/browser/extensions/api/webstore_private/webstore_private_api.cc:41: #include "content/public/browser/notification_service.h" nit: remove ...
7 years, 10 months ago (2013-02-21 06:15:37 UTC) #20
xiyuan
Mostly good. And I am picky sometime. :p https://codereview.chromium.org/12298015/diff/23001/chrome/browser/extensions/install_tracker.h File chrome/browser/extensions/install_tracker.h (right): https://codereview.chromium.org/12298015/diff/23001/chrome/browser/extensions/install_tracker.h#newcode28 chrome/browser/extensions/install_tracker.h:28: const ...
7 years, 10 months ago (2013-02-21 06:33:17 UTC) #21
Jói
Thanks, this approach seems much better to me. Removing myself from the reviewer list. Cheers, ...
7 years, 10 months ago (2013-02-21 10:56:25 UTC) #22
koz (OOO until 15th September)
https://codereview.chromium.org/12298015/diff/23001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc File chrome/browser/extensions/api/webstore_private/webstore_private_api.cc (right): https://codereview.chromium.org/12298015/diff/23001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc#newcode41 chrome/browser/extensions/api/webstore_private/webstore_private_api.cc:41: #include "content/public/browser/notification_service.h" On 2013/02/21 06:15:38, benwells wrote: > nit: ...
7 years, 10 months ago (2013-02-25 02:39:28 UTC) #23
xiyuan
LGTM
7 years, 10 months ago (2013-02-25 17:33:23 UTC) #24
Nico
lgtm Thanks, I like this much better now.
7 years, 10 months ago (2013-02-25 18:20:55 UTC) #25
tfarina
https://codereview.chromium.org/12298015/diff/28001/chrome/browser/extensions/install_tracker.h File chrome/browser/extensions/install_tracker.h (right): https://codereview.chromium.org/12298015/diff/28001/chrome/browser/extensions/install_tracker.h#newcode1 chrome/browser/extensions/install_tracker.h:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
7 years, 10 months ago (2013-02-25 19:43:18 UTC) #26
koz (OOO until 15th September)
https://codereview.chromium.org/12298015/diff/28001/chrome/browser/extensions/install_tracker.h File chrome/browser/extensions/install_tracker.h (right): https://codereview.chromium.org/12298015/diff/28001/chrome/browser/extensions/install_tracker.h#newcode1 chrome/browser/extensions/install_tracker.h:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
7 years, 10 months ago (2013-02-25 23:35:18 UTC) #27
tfarina
you have my informal LGTM with the following changes. https://codereview.chromium.org/12298015/diff/31004/chrome/browser/extensions/install_tracker.cc File chrome/browser/extensions/install_tracker.cc (right): https://codereview.chromium.org/12298015/diff/31004/chrome/browser/extensions/install_tracker.cc#newcode21 chrome/browser/extensions/install_tracker.cc:21: ...
7 years, 10 months ago (2013-02-25 23:43:02 UTC) #28
koz (OOO until 15th September)
Thanks, Thiago! https://codereview.chromium.org/12298015/diff/31004/chrome/browser/extensions/install_tracker.cc File chrome/browser/extensions/install_tracker.cc (right): https://codereview.chromium.org/12298015/diff/31004/chrome/browser/extensions/install_tracker.cc#newcode21 chrome/browser/extensions/install_tracker.cc:21: OnBeginExtensionInstall(extension_id, On 2013/02/25 23:43:02, tfarina wrote: > ...
7 years, 10 months ago (2013-02-26 00:10:50 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/12298015/17007
7 years, 10 months ago (2013-02-26 04:32:46 UTC) #30
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-26 05:30:34 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/12298015/18014
7 years, 10 months ago (2013-02-26 05:53:46 UTC) #32
commit-bot: I haz the power
7 years, 10 months ago (2013-02-26 07:55:44 UTC) #33
Message was sent while issue was closed.
Change committed as 184604

Powered by Google App Engine
This is Rietveld 408576698