OLD | NEW |
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 Loading... |
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> |
OLD | NEW |