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

Unified Diff: chrome/browser/resources/ntp4/new_tab.js

Issue 10827075: Use isDiscoveryInNTPEnabled flag instead of isSuggestionsPageEnabled flag to control suggestions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « no previous file | chrome/browser/ui/webui/ntp/new_tab_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/new_tab.js
diff --git a/chrome/browser/resources/ntp4/new_tab.js b/chrome/browser/resources/ntp4/new_tab.js
index 57c2a68277ff0996ddd7563015a54812f01e7edd..f7a468d614c725c456995582d015263fec86ae81 100644
--- a/chrome/browser/resources/ntp4/new_tab.js
+++ b/chrome/browser/resources/ntp4/new_tab.js
@@ -108,7 +108,7 @@ cr.define('ntp', function() {
*/
function onLoad() {
sectionsToWaitFor = loadTimeData.getBoolean('showApps') ? 2 : 1;
- if (loadTimeData.getBoolean('isSuggestionsPageEnabled'))
+ if (loadTimeData.getBoolean('isDiscoveryInNTPEnabled'))
sectionsToWaitFor++;
measureNavDots();
@@ -140,7 +140,7 @@ cr.define('ntp', function() {
false);
chrome.send('getMostVisited');
- if (loadTimeData.getBoolean('isSuggestionsPageEnabled')) {
+ if (loadTimeData.getBoolean('isDiscoveryInNTPEnabled')) {
var suggestions_script = document.createElement('script');
suggestions_script.src = 'suggestions_page.js';
suggestions_script.onload = function() {
« no previous file with comments | « no previous file | chrome/browser/ui/webui/ntp/new_tab_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698