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

Issue 6475011: Implemented policy to disable plugin finder. (Closed)

Created:
9 years, 10 months ago by pastarmovj
Modified:
9 years, 7 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, jam, darin-cc_chromium.org, stuartmorgan+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Implemented policy to disable plugin finder. BUG=49597 TEST=Set the policy to true and the default plugin should not offer to install missing plugins. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76043

Patch Set 1 #

Patch Set 2 : Implemented the policy (with a mocked pref readout until Bernhard's CL lands). #

Patch Set 3 : Added the pref registration. #

Total comments: 3

Patch Set 4 : Addressed comments. #

Patch Set 5 : Finished the policy wiring. #

Patch Set 6 : Finished the policy implementation. #

Total comments: 2

Patch Set 7 : Rebased on ToT. #

Total comments: 12

Patch Set 8 : Addressed comments. #

Total comments: 2

Patch Set 9 : Merged ToT and addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -20 lines) Patch
M chrome/app/policy/policy_templates.json View 1 2 3 4 5 6 7 2 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/browser_process.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.cc View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/default_plugin/plugin_impl_win.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/default_plugin/plugin_impl_win.cc View 1 2 3 4 5 6 7 4 chunks +18 lines, -12 lines 0 comments Download
M chrome/plugin/plugin_thread.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/testing_browser_process.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/testing_browser_process.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/plugin_process_host.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -3 lines 0 comments Download
M webkit/glue/webkit_strings.grd View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
pastarmovj
I decided to wait for your CL to land and keep this one as simple ...
9 years, 10 months ago (2011-02-15 13:15:39 UTC) #1
Bernhard Bauer
http://codereview.chromium.org/6475011/diff/2002/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): http://codereview.chromium.org/6475011/diff/2002/chrome/browser/browser_process_impl.cc#newcode744 chrome/browser/browser_process_impl.cc:744: local_state_->RegisterBooleanPref(prefs::kDisablePluginFinder, false); I'm not sure when this trend of ...
9 years, 10 months ago (2011-02-15 13:25:12 UTC) #2
pastarmovj
Finished the implementation based on the awesome thread wandering MemberPrefs :)
9 years, 10 months ago (2011-02-23 16:36:37 UTC) #3
Bernhard Bauer
http://codereview.chromium.org/6475011/diff/10001/chrome/browser/plugin_process_host.cc File chrome/browser/plugin_process_host.cc (right): http://codereview.chromium.org/6475011/diff/10001/chrome/browser/plugin_process_host.cc#newcode465 chrome/browser/plugin_process_host.cc:465: if (!g_browser_process->disable_plugin_finder_pref()) { Why is this no longer in ...
9 years, 10 months ago (2011-02-24 10:37:07 UTC) #4
pastarmovj
Addressed comments and started some trybots. http://codereview.chromium.org/6475011/diff/10001/chrome/browser/plugin_process_host.cc File chrome/browser/plugin_process_host.cc (right): http://codereview.chromium.org/6475011/diff/10001/chrome/browser/plugin_process_host.cc#newcode465 chrome/browser/plugin_process_host.cc:465: if (!g_browser_process->disable_plugin_finder_pref()) { ...
9 years, 10 months ago (2011-02-24 16:02:20 UTC) #5
Bernhard Bauer
LGTM with a friendly request: http://codereview.chromium.org/6475011/diff/16001/chrome/default_plugin/plugin_impl_win.cc File chrome/default_plugin/plugin_impl_win.cc (right): http://codereview.chromium.org/6475011/diff/16001/chrome/default_plugin/plugin_impl_win.cc#newcode84 chrome/default_plugin/plugin_impl_win.cc:84: DLOG(ERROR) << "Failed to ...
9 years, 10 months ago (2011-02-24 16:25:18 UTC) #6
pastarmovj
9 years, 10 months ago (2011-02-25 09:56:37 UTC) #7
Addressed the friendly advice :)
Will land if try bots are happy.

http://codereview.chromium.org/6475011/diff/16001/chrome/default_plugin/plugi...
File chrome/default_plugin/plugin_impl_win.cc (right):

http://codereview.chromium.org/6475011/diff/16001/chrome/default_plugin/plugi...
chrome/default_plugin/plugin_impl_win.cc:84: DLOG(ERROR) << "Failed to
initialize plugin install job";
On 2011/02/24 16:25:18, Bernhard Bauer wrote:
> On 2011/02/24 16:02:20, pastarmovj wrote:
> > On 2011/02/24 10:37:07, Bernhard Bauer wrote:
> > > You can just |DLOG(FATAL)| here, or even simpler just |NOTREACHED() <<
> "..."|.
> > 
> > Actually I only moved this piece of code but i will anyhow tune it as well
as
> > all same calls in  this function too.
> 
> Please do. Even if you're not the original author of the code, it's encouraged
> to do minor cleanups as you come across them.

Yep sure. :)

http://codereview.chromium.org/6475011/diff/21001/content/browser/plugin_proc...
File content/browser/plugin_process_host.cc (right):

http://codereview.chromium.org/6475011/diff/21001/content/browser/plugin_proc...
content/browser/plugin_process_host.cc:458: void
PluginProcessHost::OnGetPluginFinderUrl(std::string* plugin_finder_url) {
On 2011/02/24 16:25:19, Bernhard Bauer wrote:
> We should move this into a MessageFilter some time. Could you add a
TODO(bauerb)
> for that?

Done.

Powered by Google App Engine
This is Rietveld 408576698