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

Unified Diff: extensions/renderer/scoped_web_frame.h

Issue 2389493002: Revert of Require WebLocalFrame to be created with a non-null client (Closed)
Patch Set: Created 4 years, 3 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 | « content/test/mock_webframeclient.h ('k') | extensions/renderer/scoped_web_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/scoped_web_frame.h
diff --git a/extensions/renderer/scoped_web_frame.h b/extensions/renderer/scoped_web_frame.h
index ebcc877994f7a471df363bbcfd47349c8586f5e2..948a289483bf174fdb6369ccd194577865835f4e 100644
--- a/extensions/renderer/scoped_web_frame.h
+++ b/extensions/renderer/scoped_web_frame.h
@@ -6,7 +6,6 @@
#define SCOPED_WEB_FRAME_H_
#include "base/macros.h"
-#include "third_party/WebKit/public/web/WebFrameClient.h"
#include "third_party/WebKit/public/web/WebLocalFrame.h"
#include "third_party/WebKit/public/web/WebView.h"
@@ -22,15 +21,12 @@
blink::WebLocalFrame* frame() { return frame_; }
private:
- blink::WebFrameClient frame_client_;
-
- // The webview and the frame are kept alive by the ScopedWebFrame
- // because they are not destructed unless ~ScopedWebFrame explicitly
- // closes the WebView.
- blink::WebView* view_;
- blink::WebLocalFrame* frame_;
-
- DISALLOW_COPY_AND_ASSIGN(ScopedWebFrame);
+ // The webview and the frame are kept alive by the ScopedWebFrame
+ // because they are not destructed unless ~ScopedWebFrame explicitly
+ // closes the webview and the frame.
+ blink::WebView* view_;
+ blink::WebLocalFrame* frame_;
+ DISALLOW_COPY_AND_ASSIGN(ScopedWebFrame);
};
} // namespace extensions
« no previous file with comments | « content/test/mock_webframeclient.h ('k') | extensions/renderer/scoped_web_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698