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

Unified Diff: samples/swarm/swarm_ui_lib/base/Device.dart

Issue 11312203: "Reverting 14829-14832" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | « samples/markdown/html_renderer.dart ('k') | sdk/lib/_internal/compiler/implementation/dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/swarm_ui_lib/base/Device.dart
diff --git a/samples/swarm/swarm_ui_lib/base/Device.dart b/samples/swarm/swarm_ui_lib/base/Device.dart
index 0dee6113ced7d0249f09221356db44cba76780b3..80256355db02d0e10d8668a7aa54ca9a75646c74 100644
--- a/samples/swarm/swarm_ui_lib/base/Device.dart
+++ b/samples/swarm/swarm_ui_lib/base/Device.dart
@@ -12,17 +12,17 @@ class Device {
/**
* The regular expression for detecting an iPhone or iPod.
*/
- static final _IPHONE_REGEX = new RegExp('iPhone|iPod');
+ static const _IPHONE_REGEX = const RegExp('iPhone|iPod');
/**
* The regular expression for detecting an iPhone or iPod or iPad.
*/
- static final _MOBILE_SAFARI_REGEX = new RegExp('iPhone|iPod|iPad');
+ static const _MOBILE_SAFARI_REGEX = const RegExp('iPhone|iPod|iPad');
/**
* The regular expression for detecting an iPhone or iPod or iPad simulator.
*/
- static final _APPLE_SIM_REGEX = new RegExp('iP.*Simulator');
+ static const _APPLE_SIM_REGEX = const RegExp('iP.*Simulator');
/**
* Gets the browser's user agent. Using this function allows tests to inject
« no previous file with comments | « samples/markdown/html_renderer.dart ('k') | sdk/lib/_internal/compiler/implementation/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698