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

Unified Diff: ui/webui/resources/js/cr/link_controller.js

Issue 2603443002: Clang format JS: Disallow single line functions, conditionals, loops, and switch statements (Closed)
Patch Set: update c/b/r/ as well 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/webui/resources/js/cr/event_target.js ('k') | ui/webui/resources/js/cr/ui/array_data_model.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/cr/link_controller.js
diff --git a/ui/webui/resources/js/cr/link_controller.js b/ui/webui/resources/js/cr/link_controller.js
index 589f6aa39fff66abbf3a50a08e7cb9c3d168058b..67515e8b9f00a276204c837ead06ed879e2f25ec 100644
--- a/ui/webui/resources/js/cr/link_controller.js
+++ b/ui/webui/resources/js/cr/link_controller.js
@@ -46,7 +46,9 @@ cr.define('cr', function() {
* links.
* @constructor
*/
- function LinkController(localStrings) { this.localStrings_ = localStrings; }
+ function LinkController(localStrings) {
+ this.localStrings_ = localStrings;
+ }
LinkController.prototype = {
/**
@@ -99,7 +101,9 @@ cr.define('cr', function() {
* @param {string} url The URL to open.
* @param {cr.LinkKind} kind The kind of open we want to do.
*/
- openUrl: function(url, kind) { this.openUrls([url], kind); },
+ openUrl: function(url, kind) {
+ this.openUrls([url], kind);
+ },
/**
* Opens URLs in new tab, window or incognito mode.
@@ -118,8 +122,9 @@ cr.define('cr', function() {
// Fix '#124' URLs since opening those in a new window does not work. We
// prepend the base URL when we encounter those.
var base = this.window.location.href.split('#')[0];
- urls =
- urls.map(function(url) { return url[0] == '#' ? base + url : url; });
+ urls = urls.map(function(url) {
+ return url[0] == '#' ? base + url : url;
+ });
var incognito = kind == cr.LinkKind.INCOGNITO;
if (kind == cr.LinkKind.WINDOW || incognito) {
« no previous file with comments | « ui/webui/resources/js/cr/event_target.js ('k') | ui/webui/resources/js/cr/ui/array_data_model.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698