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

Issue 2154773002: Implement Just-In-Time Flash updates. (Closed)

Created:
4 years, 5 months ago by waffles
Modified:
4 years, 4 months ago
CC:
chromium-reviews, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement Just-In-Time Flash updates. The basic approach is that every component supplies a list of MIME types that it can handle as a plugin during registration with the component updater. If plugin content is encountered that we do not have a plugin for, the filter will ask the component updater if an implementation is available. If so, it will initiate an on-demand update for the plugin and register an observer to watch for the update completion. In the meantime, the renderer will display a plugin placeholder indicating that a download is in progress. Once/if the update is successful, the placeholder is notified and will re-evaluate the presence of a suitable plugin for the content. This second pass should catch any blocked-by-policy, power-saver, etc restrictions. BUG=624067 Committed: https://crrev.com/77255cc35690dc6985a460eeea28cb51b3dff26f Cr-Commit-Position: refs/heads/master@{#409217}

Patch Set 1 : First Review Pass #

Total comments: 34

Patch Set 2 : Through #27 + lint/format + offline comments #

Total comments: 11

Patch Set 3 : Through #34 #

Total comments: 2

Patch Set 4 : Through #39 + pepper_flash_component_installer compile fix #

Total comments: 6

Patch Set 5 : Through #45 #

Total comments: 2

Patch Set 6 : Through #48 + format #

Patch Set 7 : git pull && gclient sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+350 lines, -31 lines) Patch
M chrome/browser/component_updater/caps_installer_win.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/ev_whitelist_component_installer.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/ev_whitelist_component_installer.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/file_type_policies_component_installer.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/file_type_policies_component_installer.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/origin_trials_component_installer.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/component_updater/origin_trials_component_installer.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/pepper_flash_component_installer.cc View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/sth_set_component_installer.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/component_updater/sth_set_component_installer.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/subresource_filter_component_installer.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/subresource_filter_component_installer.cc View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/supervised_user_whitelist_installer.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/supervised_user_whitelist_installer_unittest.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/sw_reporter_installer_win.cc View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/widevine_cdm_component_installer.cc View 1 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_info_message_filter.h View 1 2 3 4 4 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_info_message_filter.cc View 1 2 3 4 5 6 chunks +61 lines, -22 lines 0 comments Download
M chrome/browser/plugins/plugin_observer.h View 1 2 3 4 4 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_observer.cc View 1 2 3 4 5 6 chunks +68 lines, -1 line 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 3 chunks +19 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/renderer/plugins/chrome_plugin_placeholder.h View 1 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/renderer/plugins/chrome_plugin_placeholder.cc View 1 4 chunks +22 lines, -5 lines 0 comments Download
M components/component_updater/component_updater_service.h View 1 2 4 chunks +17 lines, -0 lines 0 comments Download
M components/component_updater/component_updater_service.cc View 1 2 3 4 5 4 chunks +20 lines, -0 lines 0 comments Download
M components/component_updater/component_updater_service_internal.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M components/component_updater/default_component_installer.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M components/component_updater/default_component_installer.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/component_updater/default_component_installer_unittest.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M components/component_updater/mock_component_updater_service.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M components/update_client/update_client.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 71 (47 generated)
waffles
Sorin, Bernhard, PTAL.
4 years, 4 months ago (2016-07-27 22:19:54 UTC) #26
Bernhard Bauer
Nice! https://codereview.chromium.org/2154773002/diff/120001/chrome/browser/plugins/plugin_info_message_filter.cc File chrome/browser/plugins/plugin_info_message_filter.cc (right): https://codereview.chromium.org/2154773002/diff/120001/chrome/browser/plugins/plugin_info_message_filter.cc#newcode273 chrome/browser/plugins/plugin_info_message_filter.cc:273: main_thread_task_runner_->PostTask( You could do this with PostTaskAndReply(). https://codereview.chromium.org/2154773002/diff/120001/chrome/browser/plugins/plugin_info_message_filter.cc#newcode477 ...
4 years, 4 months ago (2016-07-28 10:25:11 UTC) #27
waffles
Thanks Bernhard! PTAL. https://codereview.chromium.org/2154773002/diff/120001/chrome/browser/plugins/plugin_info_message_filter.cc File chrome/browser/plugins/plugin_info_message_filter.cc (right): https://codereview.chromium.org/2154773002/diff/120001/chrome/browser/plugins/plugin_info_message_filter.cc#newcode273 chrome/browser/plugins/plugin_info_message_filter.cc:273: main_thread_task_runner_->PostTask( On 2016/07/28 10:25:10, Bernhard Bauer ...
4 years, 4 months ago (2016-07-28 20:06:28 UTC) #28
Sorin Jianu
Thank you! Small fry below. https://codereview.chromium.org/2154773002/diff/140001/chrome/browser/plugins/plugin_observer.cc File chrome/browser/plugins/plugin_observer.cc (right): https://codereview.chromium.org/2154773002/diff/140001/chrome/browser/plugins/plugin_observer.cc#newcode406 chrome/browser/plugins/plugin_observer.cc:406: auto observer = new ...
4 years, 4 months ago (2016-07-28 21:04:06 UTC) #33
Sorin Jianu
Thank you! Small fry below.
4 years, 4 months ago (2016-07-28 21:04:12 UTC) #34
waffles
https://codereview.chromium.org/2154773002/diff/140001/chrome/browser/plugins/plugin_observer.cc File chrome/browser/plugins/plugin_observer.cc (right): https://codereview.chromium.org/2154773002/diff/140001/chrome/browser/plugins/plugin_observer.cc#newcode406 chrome/browser/plugins/plugin_observer.cc:406: auto observer = new ComponentObserver(this, placeholder_id, identifier); On 2016/07/28 ...
4 years, 4 months ago (2016-07-28 23:05:52 UTC) #36
Sorin Jianu
Thank you! https://codereview.chromium.org/2154773002/diff/160001/components/component_updater/default_component_installer.h File components/component_updater/default_component_installer.h (right): https://codereview.chromium.org/2154773002/diff/160001/components/component_updater/default_component_installer.h#newcode89 components/component_updater/default_component_installer.h:89: // If this component is a plugin, ...
4 years, 4 months ago (2016-07-28 23:29:39 UTC) #38
Sorin Jianu
lgtm
4 years, 4 months ago (2016-07-28 23:29:48 UTC) #39
waffles
https://codereview.chromium.org/2154773002/diff/160001/components/component_updater/default_component_installer.h File components/component_updater/default_component_installer.h (right): https://codereview.chromium.org/2154773002/diff/160001/components/component_updater/default_component_installer.h#newcode89 components/component_updater/default_component_installer.h:89: // If this component is a plugin, returns the ...
4 years, 4 months ago (2016-07-28 23:42:44 UTC) #42
Bernhard Bauer
https://codereview.chromium.org/2154773002/diff/120001/chrome/browser/plugins/plugin_info_message_filter.cc File chrome/browser/plugins/plugin_info_message_filter.cc (right): https://codereview.chromium.org/2154773002/diff/120001/chrome/browser/plugins/plugin_info_message_filter.cc#newcode273 chrome/browser/plugins/plugin_info_message_filter.cc:273: main_thread_task_runner_->PostTask( On 2016/07/28 20:06:27, waffles wrote: > On 2016/07/28 ...
4 years, 4 months ago (2016-07-29 09:14:24 UTC) #45
waffles
Thanks again! PTAL. https://codereview.chromium.org/2154773002/diff/120001/chrome/browser/plugins/plugin_info_message_filter.cc File chrome/browser/plugins/plugin_info_message_filter.cc (right): https://codereview.chromium.org/2154773002/diff/120001/chrome/browser/plugins/plugin_info_message_filter.cc#newcode273 chrome/browser/plugins/plugin_info_message_filter.cc:273: main_thread_task_runner_->PostTask( On 2016/07/29 09:14:24, Bernhard Bauer ...
4 years, 4 months ago (2016-07-29 21:07:25 UTC) #47
Bernhard Bauer
LGTM! https://codereview.chromium.org/2154773002/diff/140001/chrome/browser/plugins/plugin_observer.cc File chrome/browser/plugins/plugin_observer.cc (right): https://codereview.chromium.org/2154773002/diff/140001/chrome/browser/plugins/plugin_observer.cc#newcode418 chrome/browser/plugins/plugin_observer.cc:418: NOTREACHED(); On 2016/07/29 21:07:25, waffles wrote: > On ...
4 years, 4 months ago (2016-08-01 09:30:39 UTC) #48
waffles
https://codereview.chromium.org/2154773002/diff/220001/chrome/browser/plugins/plugin_info_message_filter.cc File chrome/browser/plugins/plugin_info_message_filter.cc (right): https://codereview.chromium.org/2154773002/diff/220001/chrome/browser/plugins/plugin_info_message_filter.cc#newcode271 chrome/browser/plugins/plugin_info_message_filter.cc:271: main_thread_task_runner_.get(), FROM_HERE, On 2016/08/01 09:30:39, Bernhard Bauer wrote: > ...
4 years, 4 months ago (2016-08-01 18:13:46 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2154773002/240001
4 years, 4 months ago (2016-08-01 18:14:24 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/105066) android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, ...
4 years, 4 months ago (2016-08-01 18:18:00 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2154773002/260001
4 years, 4 months ago (2016-08-01 21:26:00 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/228839)
4 years, 4 months ago (2016-08-01 21:33:13 UTC) #59
waffles
+sky@ for chrome/common/render_message.h and chrome/renderer/chrome_content_renderer_client.cc (although please feel invited to take a look at the ...
4 years, 4 months ago (2016-08-01 21:35:44 UTC) #61
sky
chrome/renderer/chrome_content_renderer_client.cc LGTM, You need security for render_messages.h
4 years, 4 months ago (2016-08-01 23:20:38 UTC) #62
waffles
+rsesek, PTAL at renderer_messages.h.
4 years, 4 months ago (2016-08-01 23:28:09 UTC) #64
Robert Sesek
_messages LGTM
4 years, 4 months ago (2016-08-02 14:36:48 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2154773002/260001
4 years, 4 months ago (2016-08-02 17:20:09 UTC) #67
commit-bot: I haz the power
Committed patchset #7 (id:260001)
4 years, 4 months ago (2016-08-02 17:25:31 UTC) #69
commit-bot: I haz the power
4 years, 4 months ago (2016-08-02 17:27:07 UTC) #71
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/77255cc35690dc6985a460eeea28cb51b3dff26f
Cr-Commit-Position: refs/heads/master@{#409217}

Powered by Google App Engine
This is Rietveld 408576698