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

Unified Diff: runtime/bin/vmservice/client/lib/src/app/location_manager.dart

Issue 345113002: Fix Observatory code coverage (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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: runtime/bin/vmservice/client/lib/src/app/location_manager.dart
diff --git a/runtime/bin/vmservice/client/lib/src/app/location_manager.dart b/runtime/bin/vmservice/client/lib/src/app/location_manager.dart
index 20f4aa1ced68fffc85ad71f1a033f8452357abb0..7cadb37caeed303bb0a94150f6da4cbd47820aaa 100644
--- a/runtime/bin/vmservice/client/lib/src/app/location_manager.dart
+++ b/runtime/bin/vmservice/client/lib/src/app/location_manager.dart
@@ -42,7 +42,16 @@ abstract class LocationManager extends Observable {
if (url.startsWith('/')) {
url = url.substring(1);
}
- _app._visit(url);
+ var args;
+ // Parse out arguments.
+ if (url.contains('#')) {
+ var chunks = url.split('#');
+ url = chunks[0];
+ if ((chunks.length > 1) && (chunks[1] != '')) {
+ args = chunks[1];
+ }
+ }
+ _app._visit(url, args);
}
/// Go back.

Powered by Google App Engine
This is Rietveld 408576698