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

Unified Diff: chrome/browser/plugin_finder.h

Issue 10066016: Fix plug-in identifier for Shockwave and add a unit test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « no previous file | chrome/browser/plugin_finder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugin_finder.h
diff --git a/chrome/browser/plugin_finder.h b/chrome/browser/plugin_finder.h
index 1667411e84156dc0dc699455e805ad6c7be76100..1b969a4430bbf00f0c4c7674034c295ddc7248c9 100644
--- a/chrome/browser/plugin_finder.h
+++ b/chrome/browser/plugin_finder.h
@@ -10,6 +10,7 @@
#include <string>
#include "base/callback.h"
+#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
#include "base/string16.h"
@@ -25,10 +26,6 @@ class PluginFinder {
public:
static void Get(const base::Callback<void(PluginFinder*)>& cb);
- // Loads the plug-in information from the browser resources and parses it.
- // Returns NULL if the plug-in list couldn't be parsed.
- static scoped_ptr<base::DictionaryValue> LoadPluginList();
-
// Finds a plug-in for the given MIME type and language (specified as an IETF
// language tag, i.e. en-US) and returns the PluginInstaller for the plug-in,
// or NULL if no plug-in is found.
@@ -41,13 +38,17 @@ class PluginFinder {
private:
friend struct DefaultSingletonTraits<PluginFinder>;
friend class Singleton<PluginFinder>;
+ FRIEND_TEST_ALL_PREFIXES(PluginFinderTest, JsonSyntax);
+ FRIEND_TEST_ALL_PREFIXES(PluginFinderTest, PluginGroups);
static PluginFinder* GetInstance();
PluginFinder();
~PluginFinder();
- static base::DictionaryValue* LoadPluginListInternal();
+ // Loads the plug-in information from the browser resources and parses it.
+ // Returns NULL if the plug-in list couldn't be parsed.
+ static base::DictionaryValue* LoadPluginList();
PluginInstaller* CreateInstaller(const std::string& identifier,
const base::DictionaryValue* plugin_dict);
« no previous file with comments | « no previous file | chrome/browser/plugin_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698