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

Side by Side Diff: chrome/browser/resources/bookmark_manager/main.html

Issue 2108001: Make sure we don't "hang" when the bookmarks extension API does not work. Als... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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 | « chrome/browser/dom_ui/chrome_url_data_manager.cc ('k') | 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="dir:textdirection"> 2 <html i18n-values="dir:textdirection">
3 <!-- 3 <!--
4 4
5 Copyright (c) 2010 The Chromium Authors. All rights reserved. 5 Copyright (c) 2010 The Chromium Authors. All rights reserved.
6 Use of this source code is governed by a BSD-style license that can be 6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file. 7 found in the LICENSE file.
8 8
9 --> 9 -->
10 <head> 10 <head>
(...skipping 30 matching lines...) Expand all
41 41
42 <script src="js/bmm/tree_iterator.js"></script> 42 <script src="js/bmm/tree_iterator.js"></script>
43 <script src="js/bmm.js"></script> 43 <script src="js/bmm.js"></script>
44 <script src="js/bmm/bookmark_list.js"></script> 44 <script src="js/bmm/bookmark_list.js"></script>
45 <script src="js/bmm/bookmark_tree.js"></script> 45 <script src="js/bmm/bookmark_tree.js"></script>
46 46
47 <script> 47 <script>
48 48
49 // Sometimes the extension API is not initialized. 49 // Sometimes the extension API is not initialized.
50 if (!chrome.bookmarks) 50 if (!chrome.bookmarks)
51 window.location.reload(); 51 console.error('Bookmarks extension API is not avaiable');
52 52
53 // Allow platform specific CSS rules. 53 // Allow platform specific CSS rules.
54 if (cr.isMac) 54 if (cr.isMac)
55 document.documentElement.setAttribute('os', 'mac'); 55 document.documentElement.setAttribute('os', 'mac');
56 56
57 </script> 57 </script>
58 </head> 58 </head>
59 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> 59 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
60 60
61 <div class="header"> 61 <div class="header">
(...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after
1610 localStrings.templateData = data; 1610 localStrings.templateData = data;
1611 i18nTemplate.process(document, data); 1611 i18nTemplate.process(document, data);
1612 }); 1612 });
1613 1613
1614 </script> 1614 </script>
1615 1615
1616 <div id="drop-overlay"></div> 1616 <div id="drop-overlay"></div>
1617 1617
1618 </body> 1618 </body>
1619 </html> 1619 </html>
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/chrome_url_data_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698