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

Unified Diff: chrome/browser/resources/md_history/app.js

Issue 2578013002: [MD History] clang-format all javascript. (Closed)
Patch Set: rebase 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 | « no previous file | chrome/browser/resources/md_history/app.crisper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/app.js
diff --git a/chrome/browser/resources/md_history/app.js b/chrome/browser/resources/md_history/app.js
index 2a39a590c126be704e4574fc8cbd801048daf089..a17668459c6e85339be54b352ab8437b2bf4a6b0 100644
--- a/chrome/browser/resources/md_history/app.js
+++ b/chrome/browser/resources/md_history/app.js
@@ -27,16 +27,17 @@ Polymer({
],
properties: {
- // Used to display notices for profile sign-in status.
- showSidebarFooter: Boolean,
-
- hasSyncedResults: Boolean,
-
// The id of the currently selected page.
- selectedPage_: {type: String, observer: 'selectedPageChanged_'},
+ selectedPage_: {
+ type: String,
+ observer: 'selectedPageChanged_',
+ },
// Whether domain-grouped history is enabled.
- grouped_: {type: Boolean, reflectToAttribute: true},
+ grouped_: {
+ type: Boolean,
+ reflectToAttribute: true,
+ },
/** @type {!QueryState} */
queryState_: {
@@ -70,9 +71,6 @@ Polymer({
}
},
- // True if the window is narrow enough for the page to have a drawer.
- hasDrawer_: Boolean,
-
isUserSignedIn_: {
type: Boolean,
// Updated on synced-device-manager attach by chrome.sending
@@ -88,10 +86,16 @@ Polymer({
showMenuPromo_: {
type: Boolean,
- value: function() {
- return loadTimeData.getBoolean('showMenuPromo');
- },
+ value: function() { return loadTimeData.getBoolean('showMenuPromo'); },
},
+
+ // True if the window is narrow enough for the page to have a drawer.
+ hasDrawer_: Boolean,
+
+ // Used to display notices for profile sign-in status.
+ showSidebarFooter: Boolean,
+
+ hasSyncedResults: Boolean,
},
listeners: {
@@ -160,9 +164,7 @@ Polymer({
},
/** @private */
- onCrToolbarMenuPromoClose_: function() {
- this.showMenuPromo_ = false;
- },
+ onCrToolbarMenuPromoClose_: function() { this.showMenuPromo_ = false; },
/** @private */
onCrToolbarMenuPromoShown_: function() {
@@ -235,7 +237,7 @@ Polymer({
* @private
*/
onCanExecute_: function(e) {
- e = /** @type {cr.ui.CanExecuteEvent} */(e);
+ e = /** @type {cr.ui.CanExecuteEvent} */ (e);
switch (e.command.id) {
case 'find-command':
case 'toggle-grouped':
@@ -274,9 +276,7 @@ Polymer({
/**
* Called when browsing data is cleared.
*/
- historyDeleted: function() {
- this.$.history.historyDeleted();
- },
+ historyDeleted: function() { this.$.history.historyDeleted(); },
/**
* Update sign in state of synced device manager after user logs in or out.
@@ -387,7 +387,7 @@ Polymer({
}
md_history.BrowserService.getInstance().recordHistogram(
- 'History.HistoryPageView', histogramValue, HistoryPageViewHistogram.END
- );
+ 'History.HistoryPageView', histogramValue,
+ HistoryPageViewHistogram.END);
},
});
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/app.crisper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698