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

Unified Diff: tools/dom/src/chrome/app_runtime.dart

Issue 14400004: First try at removing ? from HTML. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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: tools/dom/src/chrome/app_runtime.dart
diff --git a/tools/dom/src/chrome/app_runtime.dart b/tools/dom/src/chrome/app_runtime.dart
index 15d32e2c7ef5066f50266dff1c628d6f74ba802a..33925ef3165725131ca4ed45f0282df1975e2b3c 100644
--- a/tools/dom/src/chrome/app_runtime.dart
+++ b/tools/dom/src/chrome/app_runtime.dart
@@ -57,9 +57,9 @@ class AppRuntimeLaunchItem extends ChromeObject {
* Public constructor
*/
AppRuntimeLaunchItem({FileEntry entry, String type}) {
- if (?entry)
+ if (entry != null)
this.entry = entry;
- if (?type)
+ if (type != null)
this.type = type;
}
@@ -92,11 +92,11 @@ class AppRuntimeLaunchData extends ChromeObject {
* Public constructor
*/
AppRuntimeLaunchData({AppRuntimeIntent intent, String id, List<AppRuntimeLaunchItem> items}) {
- if (?intent)
+ if (intent != null)
this.intent = intent;
- if (?id)
+ if (id != null)
this.id = id;
- if (?items)
+ if (items != null)
this.items = items;
}
@@ -140,11 +140,11 @@ class AppRuntimeIntentResponse extends ChromeObject {
* Public constructor
*/
AppRuntimeIntentResponse({int intentId, bool success, Object data}) {
- if (?intentId)
+ if (intentId != null)
this.intentId = intentId;
- if (?success)
+ if (success != null)
this.success = success;
- if (?data)
+ if (data != null)
this.data = data;
}
@@ -188,7 +188,7 @@ class AppRuntimeIntentResponse extends ChromeObject {
class Event_app_runtime_onLaunched extends Event {
void addListener(void callback(AppRuntimeLaunchData launchData)) {
void __proxy_callback(launchData) {
- if (?callback) {
+ if (callback != null) {
callback(new AppRuntimeLaunchData._proxy(launchData));
}
}
@@ -197,7 +197,7 @@ class Event_app_runtime_onLaunched extends Event {
void removeListener(void callback(AppRuntimeLaunchData launchData)) {
void __proxy_callback(launchData) {
- if (?callback) {
+ if (callback != null) {
callback(new AppRuntimeLaunchData._proxy(launchData));
}
}
@@ -206,7 +206,7 @@ class Event_app_runtime_onLaunched extends Event {
bool hasListener(void callback(AppRuntimeLaunchData launchData)) {
void __proxy_callback(launchData) {
- if (?callback) {
+ if (callback != null) {
callback(new AppRuntimeLaunchData._proxy(launchData));
}
}

Powered by Google App Engine
This is Rietveld 408576698