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

Unified Diff: chrome/renderer/worker_content_settings_client.cc

Issue 2928033002: Move GetDocument method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Split a DCHECK in two as suggested by boliu@. Created 3 years, 6 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: chrome/renderer/worker_content_settings_client.cc
diff --git a/chrome/renderer/worker_content_settings_client.cc b/chrome/renderer/worker_content_settings_client.cc
index afa0053696228191b92aea67717ec52561f4ff0b..56d9d140f69120e8fb23c21f5a6f37b043c1d794 100644
--- a/chrome/renderer/worker_content_settings_client.cc
+++ b/chrome/renderer/worker_content_settings_client.cc
@@ -11,13 +11,13 @@
#include "third_party/WebKit/public/platform/URLConversion.h"
#include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
#include "third_party/WebKit/public/web/WebDocument.h"
-#include "third_party/WebKit/public/web/WebFrame.h"
+#include "third_party/WebKit/public/web/WebLocalFrame.h"
#include "url/origin.h"
WorkerContentSettingsClient::WorkerContentSettingsClient(
- content::RenderFrame* render_frame,
- blink::WebFrame* frame)
+ content::RenderFrame* render_frame)
: routing_id_(render_frame->GetRoutingID()), is_unique_origin_(false) {
+ blink::WebLocalFrame* frame = render_frame->GetWebFrame();
if (frame->GetDocument().GetSecurityOrigin().IsUnique() ||
frame->Top()->GetSecurityOrigin().IsUnique())
is_unique_origin_ = true;
« no previous file with comments | « chrome/renderer/worker_content_settings_client.h ('k') | components/autofill/content/renderer/form_autofill_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698