Index: chrome/common/chrome_content_client.h |
diff --git a/chrome/common/chrome_content_client.h b/chrome/common/chrome_content_client.h |
index 38c14d6824a44a710da78fcbf02d3c5d14994d05..af2d61e7d97cf818e4e91a23b51735b258f143ae 100644 |
--- a/chrome/common/chrome_content_client.h |
+++ b/chrome/common/chrome_content_client.h |
@@ -48,6 +48,13 @@ class ChromeContentClient : public content::ContentClient { |
content::PepperPluginInfo::GetInterfaceFunc get_interface, |
content::PepperPluginInfo::PPP_InitializeModuleFunc initialize_module, |
content::PepperPluginInfo::PPP_ShutdownModuleFunc shutdown_module); |
+ |
+ // This returns the most recent plugin based on the plugin versions. |
+ // It does not make sense to call this on a vector that contains more than one |
+ // plugin type. This function may return a nullptr if given an empty vector. |
+ // The method is only visible for testing purposes. |
+ static content::PepperPluginInfo* FindMostRecentPlugin( |
+ const std::vector<content::PepperPluginInfo*>& plugins); |
#endif |
void SetActiveURL(const GURL& url) override; |