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

Unified Diff: Source/devtools/front_end/Runtime.js

Issue 1066573002: DevTools: migrate from ui-setting to settings extension point. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments addressed Created 5 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
« no previous file with comments | « no previous file | Source/devtools/front_end/components/HandlerRegistry.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/Runtime.js
diff --git a/Source/devtools/front_end/Runtime.js b/Source/devtools/front_end/Runtime.js
index b2fcc190e7d1495ff01bf8e51dbaade32a72988d..cf3c444be03eea2967b52fea45d9748f0db57043 100644
--- a/Source/devtools/front_end/Runtime.js
+++ b/Source/devtools/front_end/Runtime.js
@@ -861,6 +861,15 @@ Runtime.Extension.prototype = {
return Promise.reject("Could not instantiate: " + className);
return result;
}
+ },
+
+ /**
+ * @param {string} platform
+ * @return {string}
+ */
+ title: function(platform)
+ {
+ return this._descriptor["title-" + platform] || this._descriptor["title"];
}
}
« no previous file with comments | « no previous file | Source/devtools/front_end/components/HandlerRegistry.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698