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

Side by Side Diff: tracing/tracing/core/scripting_controller.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 2015 The Chromium Authors. All rights reserved. 3 Copyright 2015 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 7
8 <link rel="import" href="/tracing/base/extension_registry.html"> 8 <link rel="import" href="/tracing/base/extension_registry.html">
9 <link rel="import" href="/tracing/core/scripting_object.html"> 9 <link rel="import" href="/tracing/core/scripting_object.html">
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 }, 51 },
52 52
53 executeCommand: function(command) { 53 executeCommand: function(command) {
54 var f = new Function( 54 var f = new Function(
55 this.scriptObjectNames_, 'return eval(' + command + ')'); 55 this.scriptObjectNames_, 'return eval(' + command + ')');
56 return f.apply(null, this.scriptObjectValues_); 56 return f.apply(null, this.scriptObjectValues_);
57 } 57 }
58 }; 58 };
59 59
60 return { 60 return {
61 ScriptingController: ScriptingController, 61 ScriptingController,
62 ScriptingObjectRegistry: ScriptingObjectRegistry 62 ScriptingObjectRegistry,
63 }; 63 };
64 }); 64 });
65 </script> 65 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698