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

Unified Diff: chrome/browser/plugin_installer.cc

Issue 10881002: [2] Adding a method to PluginFinder to get a PluginInstaller by WebPluginInfo. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixing Windows Compilation Error Created 8 years, 4 months 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
« no previous file with comments | « chrome/browser/plugin_installer.h ('k') | chrome/browser/plugin_installer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugin_installer.cc
diff --git a/chrome/browser/plugin_installer.cc b/chrome/browser/plugin_installer.cc
index bcfbecc28a1c8ec5f3d6f4e161b6d66bd7c8f229..c85e4fa47c5ad24361d50330958f7daf82caadeb 100644
--- a/chrome/browser/plugin_installer.cc
+++ b/chrome/browser/plugin_installer.cc
@@ -72,9 +72,11 @@ PluginInstaller::PluginInstaller(const std::string& identifier,
const string16& name,
bool url_for_display,
const GURL& plugin_url,
- const GURL& help_url)
+ const GURL& help_url,
+ const string16& group_name_matcher)
: identifier_(identifier),
name_(name),
+ group_name_matcher_(group_name_matcher),
url_for_display_(url_for_display),
plugin_url_(plugin_url),
help_url_(help_url),
@@ -250,3 +252,7 @@ void PluginInstaller::DownloadCancelled() {
state_ = INSTALLER_STATE_IDLE;
FOR_EACH_OBSERVER(PluginInstallerObserver, observers_, DownloadCancelled());
}
+
+bool PluginInstaller::MatchesPlugin(const webkit::WebPluginInfo& plugin) {
+ return plugin.name.find(group_name_matcher_) != string16::npos;
+}
« no previous file with comments | « chrome/browser/plugin_installer.h ('k') | chrome/browser/plugin_installer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698