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

Issue 8493019: Refactor PluginService to take PluginList as a dependency. (Closed)

Created:
9 years, 1 month ago by Robert Sesek
Modified:
9 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, dpranke-watch+content_chromium.org, Dirk Pranke
Visibility:
Public.

Description

Refactor PluginService to take PluginList as a dependency. Also creates MockPluginService for use in tests. BUG=103788, chromium-os:22447 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109532

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments #

Patch Set 3 : Rebase ToT #

Total comments: 2

Patch Set 4 : Address comment #

Patch Set 5 : Init() #

Total comments: 2

Patch Set 6 : Remove TestPluginService #

Total comments: 1

Patch Set 7 : '' #

Patch Set 8 : Address comment #

Total comments: 2

Patch Set 9 : did_init #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -21 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/plugin_loader_posix.cc View 1 2 3 4 5 6 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/plugin_service.h View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -1 line 0 comments Download
M content/browser/plugin_service.cc View 1 2 3 4 5 6 7 8 3 chunks +27 lines, -15 lines 0 comments Download
M webkit/plugins/npapi/mock_plugin_list.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/plugins/npapi/mock_plugin_list.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/plugins/npapi/plugin_list.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 27 (0 generated)
Robert Sesek
9 years, 1 month ago (2011-11-07 22:10:42 UTC) #1
Bernhard Bauer
http://codereview.chromium.org/8493019/diff/1/content/browser/plugin_service.h File content/browser/plugin_service.h (right): http://codereview.chromium.org/8493019/diff/1/content/browser/plugin_service.h#newcode185 content/browser/plugin_service.h:185: PluginService(webkit::npapi::PluginList* plugin_list = NULL); Could you have a protected ...
9 years, 1 month ago (2011-11-07 22:37:50 UTC) #2
Robert Sesek
http://codereview.chromium.org/8493019/diff/1/content/browser/plugin_service.h File content/browser/plugin_service.h (right): http://codereview.chromium.org/8493019/diff/1/content/browser/plugin_service.h#newcode185 content/browser/plugin_service.h:185: PluginService(webkit::npapi::PluginList* plugin_list = NULL); On 2011/11/07 22:37:50, Bernhard Bauer ...
9 years, 1 month ago (2011-11-07 23:05:48 UTC) #3
jam
I dislike complicating our already complicated production code for the sake of tests. Can't we ...
9 years, 1 month ago (2011-11-07 23:18:35 UTC) #4
Robert Sesek
On 2011/11/07 23:18:35, John Abd-El-Malek wrote: > I dislike complicating our already complicated production code ...
9 years, 1 month ago (2011-11-07 23:20:50 UTC) #5
Bernhard Bauer
On 2011/11/07 23:18:35, John Abd-El-Malek wrote: > I dislike complicating our already complicated production code ...
9 years, 1 month ago (2011-11-07 23:22:01 UTC) #6
Dirk Pranke
FYI, I landed http://codereview.chromium.org/8493026/ which also changes PluginService and has some PluginList-related things, so you'll ...
9 years, 1 month ago (2011-11-08 04:44:05 UTC) #7
Robert Sesek
On 2011/11/08 04:44:05, Dirk Pranke wrote: > FYI, I landed http://codereview.chromium.org/8493026/ which also changes > ...
9 years, 1 month ago (2011-11-08 16:05:46 UTC) #8
Bernhard Bauer
http://codereview.chromium.org/8493019/diff/7002/content/browser/plugin_service.cc File content/browser/plugin_service.cc (right): http://codereview.chromium.org/8493019/diff/7002/content/browser/plugin_service.cc#newcode83 content/browser/plugin_service.cc:83: return new PluginService(webkit::npapi::PluginList::Singleton()); If you set the WillLoadPluginsCallback here, ...
9 years, 1 month ago (2011-11-08 17:03:22 UTC) #9
Robert Sesek
http://codereview.chromium.org/8493019/diff/7002/content/browser/plugin_service.cc File content/browser/plugin_service.cc (right): http://codereview.chromium.org/8493019/diff/7002/content/browser/plugin_service.cc#newcode83 content/browser/plugin_service.cc:83: return new PluginService(webkit::npapi::PluginList::Singleton()); On 2011/11/08 17:03:23, Bernhard Bauer wrote: ...
9 years, 1 month ago (2011-11-08 17:21:00 UTC) #10
jam
ok, now that Dirk's change landed, this change seems more complicated than it has to ...
9 years, 1 month ago (2011-11-08 18:33:44 UTC) #11
Robert Sesek
On 2011/11/08 18:33:44, John Abd-El-Malek wrote: > ok, now that Dirk's change landed, this change ...
9 years, 1 month ago (2011-11-08 19:07:48 UTC) #12
jam
On 2011/11/08 19:07:48, rsesek wrote: > On 2011/11/08 18:33:44, John Abd-El-Malek wrote: > > ok, ...
9 years, 1 month ago (2011-11-08 21:09:18 UTC) #13
Robert Sesek
On 2011/11/08 21:09:18, John Abd-El-Malek wrote: > On 2011/11/08 19:07:48, rsesek wrote: > > On ...
9 years, 1 month ago (2011-11-08 21:14:45 UTC) #14
jam
On Tue, Nov 8, 2011 at 1:14 PM, <rsesek@chromium.org> wrote: > On 2011/11/08 21:09:18, John ...
9 years, 1 month ago (2011-11-08 21:34:30 UTC) #15
Robert Sesek
Patch set five breaks things out into an Init(). I prefer PS#4, though.
9 years, 1 month ago (2011-11-08 22:47:33 UTC) #16
jam
http://codereview.chromium.org/8493019/diff/10003/content/browser/plugin_service.cc File content/browser/plugin_service.cc (right): http://codereview.chromium.org/8493019/diff/10003/content/browser/plugin_service.cc#newcode113 content/browser/plugin_service.cc:113: if (!service->did_init_) we should know who creates this for ...
9 years, 1 month ago (2011-11-08 23:12:57 UTC) #17
Robert Sesek
Done. PTAL.
9 years, 1 month ago (2011-11-09 17:12:53 UTC) #18
jam
http://codereview.chromium.org/8493019/diff/13001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): http://codereview.chromium.org/8493019/diff/13001/chrome/browser/browser_process_impl.cc#newcode791 chrome/browser/browser_process_impl.cc:791: plugin_service->Init(webkit::npapi::PluginList::Singleton()); this won't work in the component build (since ...
9 years, 1 month ago (2011-11-09 17:37:23 UTC) #19
Robert Sesek
On 2011/11/09 17:37:23, John Abd-El-Malek wrote: > http://codereview.chromium.org/8493019/diff/13001/chrome/browser/browser_process_impl.cc > File chrome/browser/browser_process_impl.cc (right): > > http://codereview.chromium.org/8493019/diff/13001/chrome/browser/browser_process_impl.cc#newcode791 ...
9 years, 1 month ago (2011-11-09 17:44:10 UTC) #20
Robert Sesek
On 2011/11/09 17:44:10, rsesek wrote: > On 2011/11/09 17:37:23, John Abd-El-Malek wrote: > > > ...
9 years, 1 month ago (2011-11-10 17:06:48 UTC) #21
jam
On 2011/11/10 17:06:48, rsesek wrote: > On 2011/11/09 17:44:10, rsesek wrote: > > On 2011/11/09 ...
9 years, 1 month ago (2011-11-10 17:13:12 UTC) #22
Robert Sesek
On 2011/11/10 17:13:12, John Abd-El-Malek wrote: > (I was OOO yesterday) > > the plan ...
9 years, 1 month ago (2011-11-10 18:50:30 UTC) #23
jam
lgtm http://codereview.chromium.org/8493019/diff/25001/content/browser/plugin_service.cc File content/browser/plugin_service.cc (right): http://codereview.chromium.org/8493019/diff/25001/content/browser/plugin_service.cc#newcode138 content/browser/plugin_service.cc:138: DCHECK(!did_init_); nit: is this member variable really needed ...
9 years, 1 month ago (2011-11-10 21:53:54 UTC) #24
Robert Sesek
http://codereview.chromium.org/8493019/diff/25001/content/browser/plugin_service.cc File content/browser/plugin_service.cc (right): http://codereview.chromium.org/8493019/diff/25001/content/browser/plugin_service.cc#newcode138 content/browser/plugin_service.cc:138: DCHECK(!did_init_); On 2011/11/10 21:53:54, John Abd-El-Malek wrote: > nit: ...
9 years, 1 month ago (2011-11-10 22:04:32 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsesek@chromium.org/8493019/27001
9 years, 1 month ago (2011-11-10 22:05:00 UTC) #26
commit-bot: I haz the power
9 years, 1 month ago (2011-11-10 23:20:08 UTC) #27
Change committed as 109532

Powered by Google App Engine
This is Rietveld 408576698