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

Side by Side Diff: tracing/tracing/model/model_settings.html

Issue 2526613002: Return short-hand object literals to exportTo. (Closed)
Patch Set: . Created 4 years 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2013 The Chromium Authors. All rights reserved. 3 Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 <link rel="import" href="/tracing/base/settings.html"> 7 <link rel="import" href="/tracing/base/settings.html">
8 8
9 <script> 9 <script>
10 'use strict'; 10 'use strict';
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 getEphemeralSettingsFor_: function(object) { 127 getEphemeralSettingsFor_: function(object) {
128 if (object.guid === undefined) 128 if (object.guid === undefined)
129 throw new Error('Only objects with GUIDs can be persisted'); 129 throw new Error('Only objects with GUIDs can be persisted');
130 if (this.ephemeralSettingsByGUID_[object.guid] === undefined) 130 if (this.ephemeralSettingsByGUID_[object.guid] === undefined)
131 this.ephemeralSettingsByGUID_[object.guid] = {}; 131 this.ephemeralSettingsByGUID_[object.guid] = {};
132 return this.ephemeralSettingsByGUID_[object.guid]; 132 return this.ephemeralSettingsByGUID_[object.guid];
133 } 133 }
134 }; 134 };
135 135
136 return { 136 return {
137 ModelSettings: ModelSettings 137 ModelSettings,
138 }; 138 };
139 }); 139 });
140 </script> 140 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698