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

Issue 10872034: Changing PluginPrefs to use PluginFinder's async interface. (Closed)

Created:
8 years, 4 months ago by ibraaaa
Modified:
8 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, stuartmorgan+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@test_async
Visibility:
Public.

Description

Changing PluginPrefs to use PluginFinder's async interface. Also, making its methods doesn't rely on PluginGroup class instead use PluginList's method versions that directly use WebPluginInfo. CL in the series to delete PluginGroup and move hardcoded plugin group definitions to metadata files. BUG=124396 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154995

Patch Set 1 : Converted PluginPref#CanEnablePlugin to use PluginFinder's async interface. #

Total comments: 4

Patch Set 2 : "Fixed review comments and added support for other methods in PluginPrefs to use async interface" #

Total comments: 15

Patch Set 3 : Fixing Pam's review comments #

Total comments: 2

Patch Set 4 : Fixing another comment from Pam #

Total comments: 1

Patch Set 5 : Fixed bauerb's review comments #

Total comments: 14

Patch Set 6 : Addressing more comments from bauerb #

Total comments: 2

Patch Set 7 : Addressed more more comments from bauerb #

Total comments: 4

Patch Set 8 : Fixed bauerb's More Nits #

Total comments: 5

Patch Set 9 : More Nits from bauerb #

Patch Set 10 : Removed conditional includes on PluginFinder and PluginInstaller in pdf_unsupported_feature #

Patch Set 11 : Remove exclusion of plugin_installer and plugin_finder from build when enable_plugin_installation i… #

Total comments: 8

Patch Set 12 : Addressed jhawkins' review comments #

Patch Set 13 : Addressed 1 more comment from jhawkins #

Patch Set 14 : Updated chrome_plugin_browsertest.cc to use new EnablePlugin method #

Patch Set 15 : Fix chromeos compilation error #

Patch Set 16 : Fixed bug in chromeos loading the plugins page #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -177 lines) Patch
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +22 lines, -16 lines 0 comments Download
M chrome/browser/chrome_plugin_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/chromeos/gview_request_interceptor_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/pepper_flash_component_installer.cc View 1 2 3 4 5 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/plugin_prefs.h View 1 2 3 4 5 chunks +32 lines, -15 lines 0 comments Download
M chrome/browser/plugin_prefs.cc View 1 2 3 4 5 6 7 6 chunks +122 lines, -81 lines 0 comments Download
M chrome/browser/plugin_prefs_unittest.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/ui/pdf/pdf_unsupported_feature.cc View 1 2 3 4 5 6 7 8 9 5 chunks +14 lines, -23 lines 0 comments Download
M chrome/browser/ui/webui/plugins_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 9 chunks +41 lines, -31 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
ibraaaa
8 years, 4 months ago (2012-08-23 17:07:40 UTC) #1
Bernhard Bauer
https://chromiumcodereview.appspot.com/10872034/diff/2001/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): https://chromiumcodereview.appspot.com/10872034/diff/2001/chrome/browser/automation/testing_automation_provider.cc#newcode218 chrome/browser/automation/testing_automation_provider.cc:218: if (automation) Nit: braces please. https://chromiumcodereview.appspot.com/10872034/diff/2001/chrome/browser/plugin_prefs.h File chrome/browser/plugin_prefs.h (right): ...
8 years, 4 months ago (2012-08-24 08:15:34 UTC) #2
ibraaaa
I fixed the comments and added more edits to this CL, basically changing other methods ...
8 years, 4 months ago (2012-08-24 15:51:29 UTC) #3
ibraaaa
https://chromiumcodereview.appspot.com/10872034/diff/5001/chrome/browser/plugin_prefs.cc File chrome/browser/plugin_prefs.cc (right): https://chromiumcodereview.appspot.com/10872034/diff/5001/chrome/browser/plugin_prefs.cc#newcode601 chrome/browser/plugin_prefs.cc:601: for (std::set<string16>::const_iterator it = group_names.begin(); I guess that here ...
8 years, 4 months ago (2012-08-24 15:56:21 UTC) #4
ibraaaa
8 years, 3 months ago (2012-08-27 08:05:19 UTC) #5
Pam (message me for reviews)
I'm not the best reviewer for this code. I know Bernhard is on vacation for ...
8 years, 3 months ago (2012-08-27 13:18:05 UTC) #6
jam
On 2012/08/27 13:18:05, Pam wrote: > I'm not the best reviewer for this code. I ...
8 years, 3 months ago (2012-08-27 17:05:50 UTC) #7
ibraaaa
Thanks John for getting back to me, do you know someone else other than Bernhard ...
8 years, 3 months ago (2012-08-27 17:23:07 UTC) #8
ibraaaa
http://codereview.chromium.org/10872034/diff/5001/chrome/browser/plugin_prefs.cc File chrome/browser/plugin_prefs.cc (right): http://codereview.chromium.org/10872034/diff/5001/chrome/browser/plugin_prefs.cc#newcode81 chrome/browser/plugin_prefs.cc:81: // A callback function that does nothing. On 2012/08/27 ...
8 years, 3 months ago (2012-08-28 09:25:52 UTC) #9
Pam (message me for reviews)
http://codereview.chromium.org/10872034/diff/11001/chrome/browser/plugin_prefs.cc File chrome/browser/plugin_prefs.cc (right): http://codereview.chromium.org/10872034/diff/11001/chrome/browser/plugin_prefs.cc#newcode83 chrome/browser/plugin_prefs.cc:83: // is performed. Still pretty self-evident. Perhaps it would ...
8 years, 3 months ago (2012-08-28 09:34:46 UTC) #10
ibraaaa
http://codereview.chromium.org/10872034/diff/11001/chrome/browser/plugin_prefs.cc File chrome/browser/plugin_prefs.cc (right): http://codereview.chromium.org/10872034/diff/11001/chrome/browser/plugin_prefs.cc#newcode83 chrome/browser/plugin_prefs.cc:83: // is performed. Check it now. On 2012/08/28 09:34:46, ...
8 years, 3 months ago (2012-08-28 09:50:11 UTC) #11
Pam (message me for reviews)
I still can't review this effectively, but my nits have all been addressed. http://codereview.chromium.org/10872034/diff/17001/chrome/browser/plugin_prefs.cc File ...
8 years, 3 months ago (2012-08-28 11:18:31 UTC) #12
Bernhard Bauer
http://codereview.chromium.org/10872034/diff/5001/chrome/browser/plugin_prefs.cc File chrome/browser/plugin_prefs.cc (right): http://codereview.chromium.org/10872034/diff/5001/chrome/browser/plugin_prefs.cc#newcode82 chrome/browser/plugin_prefs.cc:82: void CanEnablePluginCallbackDoNothing(bool dummy) { This is available as base::DoNothing() ...
8 years, 3 months ago (2012-08-29 12:56:36 UTC) #13
ibraaaa
http://codereview.chromium.org/10872034/diff/5001/chrome/browser/plugin_prefs.cc File chrome/browser/plugin_prefs.cc (right): http://codereview.chromium.org/10872034/diff/5001/chrome/browser/plugin_prefs.cc#newcode82 chrome/browser/plugin_prefs.cc:82: void CanEnablePluginCallbackDoNothing(bool dummy) { It doesn't take bool parameter, ...
8 years, 3 months ago (2012-08-29 15:35:50 UTC) #14
Bernhard Bauer
http://codereview.chromium.org/10872034/diff/22001/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/10872034/diff/22001/chrome/browser/automation/testing_automation_provider.cc#newcode210 chrome/browser/automation/testing_automation_provider.cc:210: void CanEnablePluginCallback(base::WeakPtr<AutomationProvider> automation, We should name this method differently ...
8 years, 3 months ago (2012-08-29 16:53:21 UTC) #15
ibraaaa
http://codereview.chromium.org/10872034/diff/22001/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/10872034/diff/22001/chrome/browser/automation/testing_automation_provider.cc#newcode210 chrome/browser/automation/testing_automation_provider.cc:210: void CanEnablePluginCallback(base::WeakPtr<AutomationProvider> automation, On 2012/08/29 16:53:21, Bernhard Bauer wrote: ...
8 years, 3 months ago (2012-08-29 17:37:53 UTC) #16
Bernhard Bauer
http://codereview.chromium.org/10872034/diff/22001/chrome/browser/plugin_prefs.cc File chrome/browser/plugin_prefs.cc (right): http://codereview.chromium.org/10872034/diff/22001/chrome/browser/plugin_prefs.cc#newcode69 chrome/browser/plugin_prefs.cc:69: void MaybeRunCallback(bool dummy) { On 2012/08/29 17:37:53, ibraaaa wrote: ...
8 years, 3 months ago (2012-08-29 18:10:16 UTC) #17
ibraaaa
http://codereview.chromium.org/10872034/diff/22001/chrome/browser/plugin_prefs.cc File chrome/browser/plugin_prefs.cc (right): http://codereview.chromium.org/10872034/diff/22001/chrome/browser/plugin_prefs.cc#newcode69 chrome/browser/plugin_prefs.cc:69: void MaybeRunCallback(bool dummy) { Ah, I see. My intention ...
8 years, 3 months ago (2012-08-29 18:28:19 UTC) #18
Bernhard Bauer
LGTM with two nits below: http://codereview.chromium.org/10872034/diff/22001/chrome/browser/plugin_prefs_unittest.cc File chrome/browser/plugin_prefs_unittest.cc (right): http://codereview.chromium.org/10872034/diff/22001/chrome/browser/plugin_prefs_unittest.cc#newcode27 chrome/browser/plugin_prefs_unittest.cc:27: MessageLoop::current()->QuitWhenIdle(); On 2012/08/29 18:28:19, ...
8 years, 3 months ago (2012-08-31 12:54:11 UTC) #19
ibraaaa
http://codereview.chromium.org/10872034/diff/15010/chrome/browser/plugin_prefs.cc File chrome/browser/plugin_prefs.cc (right): http://codereview.chromium.org/10872034/diff/15010/chrome/browser/plugin_prefs.cc#newcode81 chrome/browser/plugin_prefs.cc:81: bool can_enable_; On 2012/08/31 12:54:11, Bernhard Bauer wrote: > ...
8 years, 3 months ago (2012-09-03 08:55:22 UTC) #20
Bernhard Bauer
Found some more nits, sorry ;-) http://codereview.chromium.org/10872034/diff/30001/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/10872034/diff/30001/chrome/browser/automation/testing_automation_provider.cc#newcode214 chrome/browser/automation/testing_automation_provider.cc:214: bool can_enable) { ...
8 years, 3 months ago (2012-09-03 08:57:11 UTC) #21
ibraaaa
I reverted some formatting changes that were accidentally caused by during during editing. PTAL. http://codereview.chromium.org/10872034/diff/30001/chrome/browser/automation/testing_automation_provider.cc ...
8 years, 3 months ago (2012-09-03 09:10:28 UTC) #22
Bernhard Bauer
still lgtm
8 years, 3 months ago (2012-09-03 09:13:37 UTC) #23
ibraaaa
Hi John & James, Can I have an OWNERS review for this CL?
8 years, 3 months ago (2012-09-03 09:16:01 UTC) #24
ibraaaa
Hi again, To be specific, James: can you take a look at stuff in chrome/browser/ui/webui/ ...
8 years, 3 months ago (2012-09-03 09:31:07 UTC) #25
James Hawkins
http://codereview.chromium.org/10872034/diff/31008/chrome/browser/ui/webui/plugins_ui.cc File chrome/browser/ui/webui/plugins_ui.cc (right): http://codereview.chromium.org/10872034/diff/31008/chrome/browser/ui/webui/plugins_ui.cc#newcode62 chrome/browser/ui/webui/plugins_ui.cc:62: // Helper callback method to process result of CanEnablePlugin ...
8 years, 3 months ago (2012-09-04 14:13:16 UTC) #26
ibraaaa
Hi James, PTAL, Thanks. http://codereview.chromium.org/10872034/diff/31008/chrome/browser/ui/webui/plugins_ui.cc File chrome/browser/ui/webui/plugins_ui.cc (right): http://codereview.chromium.org/10872034/diff/31008/chrome/browser/ui/webui/plugins_ui.cc#newcode62 chrome/browser/ui/webui/plugins_ui.cc:62: // Helper callback method to ...
8 years, 3 months ago (2012-09-04 14:52:09 UTC) #27
James Hawkins
http://codereview.chromium.org/10872034/diff/31008/chrome/browser/ui/webui/plugins_ui.cc File chrome/browser/ui/webui/plugins_ui.cc (right): http://codereview.chromium.org/10872034/diff/31008/chrome/browser/ui/webui/plugins_ui.cc#newcode63 chrome/browser/ui/webui/plugins_ui.cc:63: void CheckCanEnablePluginCallback(bool can_enable) { On 2012/09/04 14:52:09, ibraaaa wrote: ...
8 years, 3 months ago (2012-09-04 14:55:50 UTC) #28
ibraaaa
PTAL, thanks. http://codereview.chromium.org/10872034/diff/31008/chrome/browser/ui/webui/plugins_ui.cc File chrome/browser/ui/webui/plugins_ui.cc (right): http://codereview.chromium.org/10872034/diff/31008/chrome/browser/ui/webui/plugins_ui.cc#newcode63 chrome/browser/ui/webui/plugins_ui.cc:63: void CheckCanEnablePluginCallback(bool can_enable) { Ahh, ok. Actually, ...
8 years, 3 months ago (2012-09-04 15:09:08 UTC) #29
James Hawkins
webui LGTM
8 years, 3 months ago (2012-09-04 15:10:31 UTC) #30
jam
lgtm
8 years, 3 months ago (2012-09-04 16:55:32 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ibraaaa@google.com/10872034/40001
8 years, 3 months ago (2012-09-04 18:16:48 UTC) #32
commit-bot: I haz the power
Try job failure for 10872034-40001 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-09-04 18:47:10 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ibraaaa@google.com/10872034/31020
8 years, 3 months ago (2012-09-04 19:54:14 UTC) #34
ibraaaa
Bernhard, I made these modifications: - in plugins_ui.cc to fix a bug loading the plugins ...
8 years, 3 months ago (2012-09-05 10:54:16 UTC) #35
Bernhard Bauer
still LGTM ;-)
8 years, 3 months ago (2012-09-05 11:00:22 UTC) #36
Bernhard Bauer
Oh, one thing: You can probably remove the numbers in the CL description. You're not ...
8 years, 3 months ago (2012-09-05 11:00:51 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ibraaaa@google.com/10872034/40005
8 years, 3 months ago (2012-09-05 11:44:14 UTC) #38
commit-bot: I haz the power
Try job failure for 10872034-40005 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-09-05 12:53:51 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ibraaaa@google.com/10872034/40005
8 years, 3 months ago (2012-09-05 14:42:55 UTC) #40
commit-bot: I haz the power
8 years, 3 months ago (2012-09-05 18:53:41 UTC) #41
Change committed as 154995

Powered by Google App Engine
This is Rietveld 408576698