OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 | 5 |
| 6 // NOTE: If you modify this file, you also have to change its hash in |
| 7 // local_ntp.html and in LocalNtpSource::GetContentSecurityPolicyScriptSrc. |
| 8 |
| 9 |
6 /** | 10 /** |
7 * @fileoverview The local InstantExtended NTP. | 11 * @fileoverview The local InstantExtended NTP. |
8 */ | 12 */ |
9 | 13 |
10 | 14 |
11 /** | 15 /** |
12 * Controls rendering the new tab page for InstantExtended. | 16 * Controls rendering the new tab page for InstantExtended. |
13 * @return {Object} A limited interface for testing the local NTP. | 17 * @return {Object} A limited interface for testing the local NTP. |
14 */ | 18 */ |
15 function LocalNTP() { | 19 function LocalNTP() { |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 return { | 676 return { |
673 init: init, // Exposed for testing. | 677 init: init, // Exposed for testing. |
674 listen: listen | 678 listen: listen |
675 }; | 679 }; |
676 | 680 |
677 } | 681 } |
678 | 682 |
679 if (!window.localNTPUnitTest) { | 683 if (!window.localNTPUnitTest) { |
680 LocalNTP().listen(); | 684 LocalNTP().listen(); |
681 } | 685 } |
OLD | NEW |