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

Unified Diff: chrome/browser/resources/history/history.js

Issue 2617823002: GRIT: put <if> and <include> behind comments in .js files to make syntactically valid JS (Closed)
Patch Set: add dep Created 3 years, 11 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 | « chrome/browser/resources/help/help_page.js ('k') | chrome/browser/resources/local_ntp/most_visited_util.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/history/history.js
diff --git a/chrome/browser/resources/history/history.js b/chrome/browser/resources/history/history.js
index 11c84fd9f8f3f31c053f679c0b84b7a830080dad..20814f108a57e5e3b63642a33e5795a2760342bd 100644
--- a/chrome/browser/resources/history/history.js
+++ b/chrome/browser/resources/history/history.js
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-<include src="../uber/uber_utils.js">
-<include src="history_focus_manager.js">
+// <include src="../uber/uber_utils.js">
+// <include src="history_focus_manager.js">
///////////////////////////////////////////////////////////////////////////////
// Globals:
@@ -1987,7 +1987,7 @@ function load() {
window.addEventListener(
'resize', historyView.updateClearBrowsingDataButton_);
-<if expr="is_ios">
+// <if expr="is_ios">
// Trigger window resize event when search field is focused to force update
// of the clear browsing button, which should disappear when search field
// is active. The window is not resized when the virtual keyboard is shown
@@ -1995,7 +1995,7 @@ function load() {
searchField.addEventListener('focus', function() {
cr.dispatchSimpleEvent(window, 'resize');
});
-</if> /* is_ios */
+// </if> /* is_ios */
// When the search field loses focus, add a delay before updating the
// visibility, otherwise the button will flash on the screen before the
@@ -2015,7 +2015,7 @@ function load() {
searchField.focus();
}
-<if expr="is_ios">
+// <if expr="is_ios">
function checkKeyboardVisibility() {
// Figure out the real height based on the orientation, becauase
// screen.width and screen.height don't update after rotation.
@@ -2029,7 +2029,7 @@ function load() {
}
window.addEventListener('orientationchange', checkKeyboardVisibility);
window.addEventListener('resize', checkKeyboardVisibility);
-</if> /* is_ios */
+// </if> /* is_ios */
}
/**
« no previous file with comments | « chrome/browser/resources/help/help_page.js ('k') | chrome/browser/resources/local_ntp/most_visited_util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698