diff options
author | deepak.m1 <deepak.m1@samsung.com> | 2015-04-30 01:03:37 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-30 08:05:07 +0000 |
commit | 66c786a59403f02dc49df0090cece8e0e3cc3b1b (patch) | |
tree | b09d58c2e7108014f525506b6ddc4e248ff64e23 | |
parent | 35c5277cae5f482d0cd7f40af1c546795620c4bd (diff) | |
download | chromium_src-66c786a59403f02dc49df0090cece8e0e3cc3b1b.zip chromium_src-66c786a59403f02dc49df0090cece8e0e3cc3b1b.tar.gz chromium_src-66c786a59403f02dc49df0090cece8e0e3cc3b1b.tar.bz2 |
Adding strict mode for bookmark_manager file for better error checking.
Adding strict mode to bookmark manager's js files to detect error at load time itself.
BUG=177166
Review URL: https://codereview.chromium.org/1115683002
Cr-Commit-Position: refs/heads/master@{#327679}
4 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/resources/bookmark_manager/js/bmm.js b/chrome/browser/resources/bookmark_manager/js/bmm.js index 1e55fc8..8daf62c 100644 --- a/chrome/browser/resources/bookmark_manager/js/bmm.js +++ b/chrome/browser/resources/bookmark_manager/js/bmm.js @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +'use strict'; + cr.define('bmm', function() { /** * Whether a node contains another node. diff --git a/chrome/browser/resources/bookmark_manager/js/bmm/bookmark_list.js b/chrome/browser/resources/bookmark_manager/js/bmm/bookmark_list.js index b53f06c..01d5824 100644 --- a/chrome/browser/resources/bookmark_manager/js/bmm/bookmark_list.js +++ b/chrome/browser/resources/bookmark_manager/js/bmm/bookmark_list.js @@ -5,6 +5,8 @@ // TODO(arv): Now that this is driven by a data model, implement a data model // that handles the loading and the events from the bookmark backend. +'use strict'; + /** * @typedef {{childIds: Array<string>}} * diff --git a/chrome/browser/resources/bookmark_manager/js/bmm/bookmark_tree.js b/chrome/browser/resources/bookmark_manager/js/bmm/bookmark_tree.js index a34d520..44a0e23 100644 --- a/chrome/browser/resources/bookmark_manager/js/bmm/bookmark_tree.js +++ b/chrome/browser/resources/bookmark_manager/js/bmm/bookmark_tree.js @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +'use strict'; cr.define('bmm', function() { /** diff --git a/chrome/browser/resources/bookmark_manager/js/main.js b/chrome/browser/resources/bookmark_manager/js/main.js index c48bb13..dea7bfb 100644 --- a/chrome/browser/resources/bookmark_manager/js/main.js +++ b/chrome/browser/resources/bookmark_manager/js/main.js @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +'use strict'; + (function() { /** @const */ var BookmarkList = bmm.BookmarkList; /** @const */ var BookmarkTree = bmm.BookmarkTree; |