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

Side by Side Diff: chrome/browser/resources/new_new_tab.html

Issue 6359003: NTP: Register callbacks to prevent race conditions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html i18n-values=" 2 <html i18n-values="
3 dir:textdirection; 3 dir:textdirection;
4 bookmarkbarattached:bookmarkbarattached; 4 bookmarkbarattached:bookmarkbarattached;
5 hasattribution:hasattribution; 5 hasattribution:hasattribution;
6 anim:anim; 6 anim:anim;
7 syncispresent:syncispresent; 7 syncispresent:syncispresent;
8 customlogo:customlogo" 8 customlogo:customlogo"
9 install-animation-enabled="true"> 9 install-animation-enabled="true">
10 <head> 10 <head>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 chrome.send('getRecentlyClosedTabs'); 47 chrome.send('getRecentlyClosedTabs');
48 chrome.send('getForeignSessions'); 48 chrome.send('getForeignSessions');
49 chrome.send('getApps'); 49 chrome.send('getApps');
50 50
51 registerCallback('mostVisitedPages'); 51 registerCallback('mostVisitedPages');
52 registerCallback('recentlyClosedTabs'); 52 registerCallback('recentlyClosedTabs');
53 registerCallback('syncMessageChanged'); 53 registerCallback('syncMessageChanged');
54 registerCallback('getAppsCallback'); 54 registerCallback('getAppsCallback');
55 registerCallback('setShownSections'); 55 registerCallback('setShownSections');
56 registerCallback('foreignSessions'); 56 registerCallback('foreignSessions');
57 registerCallback('bookmarkBarDetached');
58 registerCallback('bookmarkBarAttached');
57 59
58 </script> 60 </script>
59 <!-- template data placeholder --> 61 <!-- template data placeholder -->
60 <link rel="stylesheet" href="new_new_tab.css"> 62 <link rel="stylesheet" href="new_new_tab.css">
61 <link rel="stylesheet" href="ntp/most_visited.css"> 63 <link rel="stylesheet" href="ntp/most_visited.css">
62 <link rel="stylesheet" href="ntp/apps.css"> 64 <link rel="stylesheet" href="ntp/apps.css">
63 <link rel="stylesheet" href="shared/css/menu.css"> 65 <link rel="stylesheet" href="shared/css/menu.css">
64 <script> 66 <script>
65 67
66 /** 68 /**
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 // disabled or not. So we need to add the 'disabled' class back to the apps 331 // disabled or not. So we need to add the 'disabled' class back to the apps
330 // section here. We remove it later, once we know for sure we want it to be 332 // section here. We remove it later, once we know for sure we want it to be
331 // enabled. 333 // enabled.
332 // 334 //
333 // See also: crbug.com/67273. 335 // See also: crbug.com/67273.
334 $('apps').classList.add('disabled'); 336 $('apps').classList.add('disabled');
335 337
336 layoutSections(); 338 layoutSections();
337 </script> 339 </script>
338 </html> 340 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698