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

Unified Diff: chrome/browser/plugin_updater.h

Issue 5699005: Policy: Re-enabled plugin still disabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up WebPluginInfo and rebased on fixed PluginGroup::InitFrom. Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/plugin_updater.h
diff --git a/chrome/browser/plugin_updater.h b/chrome/browser/plugin_updater.h
index dc185954c2c7bdf0aee61fe94c2ab49dc88171ac..3bdd802fe9ae506f15d31878b5b0f84f6ad18af2 100644
--- a/chrome/browser/plugin_updater.h
+++ b/chrome/browser/plugin_updater.h
@@ -35,8 +35,15 @@ class PluginUpdater : public NotificationObserver {
// Enable or disable a plugin group.
void EnablePluginGroup(bool enable, const string16& group_name);
- // Enable or disable a specific plugin file.
- void EnablePluginFile(bool enable, const FilePath::StringType& file_path);
+ // Enable or disable a specific plugin file. If this function is called for
+ // setting the state of a plugin that has not been loaded yet (as is the case)
Bernhard Bauer 2010/12/21 19:07:39 Nit: extend parenthesis to include "with policy co
pastarmovj 2010/12/23 13:00:19 Done.
+ // with policy controlled plugins then the |name| parameter must be set to the
+ // plugin name so that the right group for the plugin can be found/created.
+ // If this function is called for a loaded plugin (UI call) |name| can be left
+ // empty.
+ void EnablePlugin(bool enable,
+ const FilePath::StringType& file_path,
+ const string16& name);
// Disable all plugin groups as defined by the user's preference file.
void DisablePluginGroupsFromPrefs(Profile* profile);

Powered by Google App Engine
This is Rietveld 408576698