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

Issue 1867833003: Prefer System Flash over non-local component updated Flash. (Closed)

Created:
4 years, 8 months ago by Will Harris
Modified:
4 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, cpu_(ooo_6.6-7.5)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prefer System Flash over non-local component updated Flash. This avoids attempting to load a Flash DLL off a network drive if doing so would not result in loading an old version of Flash. When determining which Flash to load the following algorithm is evaluated: First, a candidate list of Flash versions is compiled sourced from: - System Flash (Adobe updated) - (could be the debug version) - Bundled Flash (ships with Chrome) - Component updated Flash (updated on user data dir by component updater)* * Note this really only applies on Linux when the component updated Flash is already available at Chrome startup. The highest single version will always win. If so, just use that version. If there are two or more available version of Flash with the same version then preference is given in the following order - Flash content Debugger - Bundled Flash - Local-drive Component updated Flash - System Flash - Network-mounted component updated Flash Because of the way that the pepperflash component updater injects its version of Flash later on in Chrome load, the network drive determination is done in two places, firstly inside ChromeContentClient when building a candidate list, since Linux could have a component updated flash ready for use at this point, and secondly when the pepperflash component comes to inject the new version it will evalulate the order based on the rule above on whether to inject itself. TEST=https://docs.google.com/document/d/1iTQiaqjuHsKV4cPqSOet-eJKWb2SsJLp2ieDj_Mul4s/preview TEST=unit_tests --gtest_filter=ChromeContentClientTest.* BUG=572131 Committed: https://crrev.com/73d6faae235add2deebf2a634f0cd0939751a946 Cr-Commit-Position: refs/heads/master@{#389006}

Patch Set 1 #

Patch Set 2 : revamp #

Patch Set 3 : rebase #

Total comments: 13

Patch Set 4 : rebase. split. upstream. #

Patch Set 5 : code review comments #

Total comments: 6

Patch Set 6 : code review changes. also correct the display in plugins list #

Patch Set 7 : fix test 9 #

Patch Set 8 : fix mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -97 lines) Patch
M chrome/browser/component_updater/pepper_flash_component_installer.cc View 1 2 3 4 5 6 7 1 chunk +34 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/plugins/plugins_handler.cc View 1 2 3 4 5 2 chunks +5 lines, -8 lines 0 comments Download
M chrome/common/chrome_content_client.cc View 1 2 3 4 5 8 chunks +43 lines, -48 lines 0 comments Download
M chrome/common/chrome_content_client_unittest.cc View 1 2 3 1 chunk +87 lines, -31 lines 0 comments Download
M chrome/common/pepper_flash.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/pepper_flash.cc View 1 2 3 4 5 2 chunks +24 lines, -1 line 0 comments Download
M content/public/common/pepper_plugin_info.h View 1 1 chunk +14 lines, -0 lines 0 comments Download
M content/public/common/pepper_plugin_info.cc View 1 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (19 generated)
Will Harris
PTAL
4 years, 8 months ago (2016-04-07 23:44:17 UTC) #3
Will Harris
actually don't take a look yet. I have decided to change the logic to make ...
4 years, 8 months ago (2016-04-08 00:14:41 UTC) #4
Will Harris
This now works, but I need to do a lot of testing. If you don't ...
4 years, 8 months ago (2016-04-08 21:40:01 UTC) #7
Will Harris
I added a testing plan - https://docs.google.com/document/d/1iTQiaqjuHsKV4cPqSOet-eJKWb2SsJLp2ieDj_Mul4s/preview
4 years, 8 months ago (2016-04-09 00:13:42 UTC) #10
Will Harris
hello cpu, I wondered if you had any comments on this CL, or could suggest ...
4 years, 8 months ago (2016-04-13 19:33:47 UTC) #11
Will Harris
+thestig I wonder if you could look at this, as you looked at some recent ...
4 years, 8 months ago (2016-04-15 17:53:07 UTC) #13
cpu_(ooo_6.6-7.5)
as usual, lets split the base changes in another CL. https://codereview.chromium.org/1867833003/diff/40001/base/files/file_util_unittest.cc File base/files/file_util_unittest.cc (right): https://codereview.chromium.org/1867833003/diff/40001/base/files/file_util_unittest.cc#newcode1679 ...
4 years, 8 months ago (2016-04-15 20:55:33 UTC) #15
Will Harris
will split off the base changes and leave this CL for the Flash changes. https://codereview.chromium.org/1867833003/diff/40001/base/files/file_util_win.cc ...
4 years, 8 months ago (2016-04-15 21:15:06 UTC) #16
Lei Zhang
https://codereview.chromium.org/1867833003/diff/40001/base/files/file_util_win.cc File base/files/file_util_win.cc (right): https://codereview.chromium.org/1867833003/diff/40001/base/files/file_util_win.cc#newcode566 base/files/file_util_win.cc:566: FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, Do you need write ...
4 years, 8 months ago (2016-04-15 21:16:36 UTC) #17
Will Harris
This CL has now been split into two. the other one is https://codereview.chromium.org/1892153003 Will continue ...
4 years, 8 months ago (2016-04-15 21:30:31 UTC) #18
Will Harris
https://codereview.chromium.org/1867833003/diff/40001/chrome/browser/component_updater/pepper_flash_component_installer.cc File chrome/browser/component_updater/pepper_flash_component_installer.cc (right): https://codereview.chromium.org/1867833003/diff/40001/chrome/browser/component_updater/pepper_flash_component_installer.cc#newcode162 chrome/browser/component_updater/pepper_flash_component_installer.cc:162: PathService::Get(chrome::DIR_PEPPER_FLASH_PLUGIN, &bundled_flash_path); On 2016/04/15 21:16:36, Lei Zhang wrote: > ...
4 years, 8 months ago (2016-04-15 21:43:28 UTC) #19
cpu_(ooo_6.6-7.5)
lgtm https://codereview.chromium.org/1867833003/diff/80001/chrome/browser/component_updater/pepper_flash_component_installer.cc File chrome/browser/component_updater/pepper_flash_component_installer.cc (right): https://codereview.chromium.org/1867833003/diff/80001/chrome/browser/component_updater/pepper_flash_component_installer.cc#newcode172 chrome/browser/component_updater/pepper_flash_component_installer.cc:172: !bundled_flash_path.empty() && bundled_flash_path.IsParent(plugin.path); 171-172 could go after 179, ...
4 years, 8 months ago (2016-04-20 19:23:14 UTC) #20
cpu_(ooo_6.6-7.5)
actually waffles should take a peek here.
4 years, 8 months ago (2016-04-20 19:24:38 UTC) #22
waffles
lgtm If the sandbox won't load a plugin on a networked drive, why do we ...
4 years, 8 months ago (2016-04-20 20:49:03 UTC) #23
Will Harris
On 2016/04/20 20:49:03, waffles wrote: > lgtm > > If the sandbox won't load a ...
4 years, 8 months ago (2016-04-20 20:54:05 UTC) #24
waffles
On 2016/04/20 20:54:05, Will Harris wrote: > On 2016/04/20 20:49:03, waffles wrote: > > lgtm ...
4 years, 8 months ago (2016-04-20 21:17:36 UTC) #25
Will Harris
On 2016/04/20 21:17:36, waffles wrote: > On 2016/04/20 20:54:05, Will Harris wrote: > > On ...
4 years, 8 months ago (2016-04-20 22:18:57 UTC) #26
Will Harris
Changes made. I also noticed that the display in chrome://plugins would now be wrong, for ...
4 years, 8 months ago (2016-04-20 23:50:22 UTC) #28
Will Harris
Update: I found an issue in testing whereby a component update of the same version ...
4 years, 8 months ago (2016-04-21 18:53:44 UTC) #29
Will Harris
bug is now fixed in ps6 and I went through a complete testing run. I ...
4 years, 8 months ago (2016-04-21 20:20:40 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1867833003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1867833003/160001
4 years, 8 months ago (2016-04-21 21:51:35 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/136621)
4 years, 8 months ago (2016-04-21 22:12:24 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1867833003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1867833003/160001
4 years, 8 months ago (2016-04-21 22:33:52 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/58264)
4 years, 8 months ago (2016-04-21 23:35:07 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1867833003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1867833003/160001
4 years, 8 months ago (2016-04-22 03:06:36 UTC) #42
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years, 8 months ago (2016-04-22 03:45:25 UTC) #44
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:43:35 UTC) #46
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/73d6faae235add2deebf2a634f0cd0939751a946
Cr-Commit-Position: refs/heads/master@{#389006}

Powered by Google App Engine
This is Rietveld 408576698