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

Unified Diff: sky/engine/bindings/builtin_natives.cc

Issue 1153673005: Make Uri.base work in SkyView (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 | sky/engine/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/bindings/builtin_natives.cc
diff --git a/sky/engine/bindings/builtin_natives.cc b/sky/engine/bindings/builtin_natives.cc
index 022d781172d0bdc3c0f9cba1e047f685d8967cb9..f826ca828d07c9cd8298d52a31d5819d3021612f 100644
--- a/sky/engine/bindings/builtin_natives.cc
+++ b/sky/engine/bindings/builtin_natives.cc
@@ -192,9 +192,7 @@ void ScheduleMicrotask(Dart_NativeArguments args) {
}
void GetBaseURLString(Dart_NativeArguments args) {
- String url;
- if (Document* document = DOMDartState::CurrentDocument())
- url = document->url().string();
+ String url = DOMDartState::Current()->url();
Dart_SetReturnValue(args, StringToDart(DartState::Current(), url));
}
« no previous file with comments | « no previous file | sky/engine/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698