Chromium Code Reviews| Index: third_party/WebKit/Source/modules/plugins/DOMPlugin.h | 
| diff --git a/third_party/WebKit/Source/modules/plugins/DOMPlugin.h b/third_party/WebKit/Source/modules/plugins/DOMPlugin.h | 
| index d859c77002119934445a5e12db6e1924df270e72..9c80d1f69e40772f75352b010922323cd8ee58bc 100644 | 
| --- a/third_party/WebKit/Source/modules/plugins/DOMPlugin.h | 
| +++ b/third_party/WebKit/Source/modules/plugins/DOMPlugin.h | 
| @@ -29,8 +29,6 @@ | 
| namespace blink { | 
| -class PluginData; | 
| - | 
| class DOMPlugin final : public GarbageCollectedFinalized<DOMPlugin>, | 
| public ScriptWrappable, | 
| public ContextClient { | 
| @@ -38,10 +36,8 @@ class DOMPlugin final : public GarbageCollectedFinalized<DOMPlugin>, | 
| DEFINE_WRAPPERTYPEINFO(); | 
| public: | 
| - static DOMPlugin* Create(PluginData* plugin_data, | 
| - LocalFrame* frame, | 
| - unsigned index) { | 
| - return new DOMPlugin(plugin_data, frame, index); | 
| + static DOMPlugin* Create(LocalFrame* frame, const PluginInfo* plugin_info) { | 
| 
 
tkent
2017/05/25 00:10:32
Make the second argument |const PluginInfo&| to en
 
lfg
2017/05/25 01:42:40
Done.
 
 | 
| + return new DOMPlugin(frame, plugin_info); | 
| } | 
| virtual ~DOMPlugin(); | 
| @@ -57,14 +53,9 @@ class DOMPlugin final : public GarbageCollectedFinalized<DOMPlugin>, | 
| DECLARE_VIRTUAL_TRACE(); | 
| private: | 
| - DOMPlugin(PluginData*, LocalFrame*, unsigned index); | 
| - | 
| - const PluginInfo& GetPluginInfo() const { | 
| - return plugin_data_->Plugins()[index_]; | 
| - } | 
| + explicit DOMPlugin(LocalFrame*, const PluginInfo*); | 
| 
 
tkent
2017/05/25 00:10:32
Do not add |explicit|.
Make the second argument |c
 
lfg
2017/05/25 01:42:40
Done.
 
 | 
| - RefPtr<PluginData> plugin_data_; | 
| - unsigned index_; | 
| + Member<const PluginInfo> plugin_info_; | 
| }; | 
| } // namespace blink |