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

Unified Diff: third_party/WebKit/Source/web/tests/FakeWebPlugin.cpp

Issue 2855123003: Remove rendundant WebLocalFrame parameter in various plugin code. (Closed)
Patch Set: Fix Android Created 3 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
Index: third_party/WebKit/Source/web/tests/FakeWebPlugin.cpp
diff --git a/third_party/WebKit/Source/web/tests/FakeWebPlugin.cpp b/third_party/WebKit/Source/web/tests/FakeWebPlugin.cpp
index c72d4548d86b06e08c9578526d7753b112b56904..43b7d16a31343eaba6e6be6e82204fd08ea943f9 100644
--- a/third_party/WebKit/Source/web/tests/FakeWebPlugin.cpp
+++ b/third_party/WebKit/Source/web/tests/FakeWebPlugin.cpp
@@ -32,8 +32,7 @@
namespace blink {
-FakeWebPlugin::FakeWebPlugin(WebFrame* frame, const WebPluginParams& params)
- : frame_(frame) {}
+FakeWebPlugin::FakeWebPlugin(const WebPluginParams& params) {}
FakeWebPlugin::~FakeWebPlugin() {}
@@ -43,8 +42,7 @@ bool FakeWebPlugin::Initialize(WebPluginContainer* container) {
}
void FakeWebPlugin::Destroy() {
- container_ = 0;
- frame_ = 0;
+ container_ = nullptr;
delete this;
}

Powered by Google App Engine
This is Rietveld 408576698