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

Unified Diff: chrome/browser/resources/bookmark_manager/js/main.js

Issue 2815813002: Remove obsolete bookmarkManagerPrivate.canOpenNewWindows API function (Closed)
Patch Set: Created 3 years, 8 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
Index: chrome/browser/resources/bookmark_manager/js/main.js
diff --git a/chrome/browser/resources/bookmark_manager/js/main.js b/chrome/browser/resources/bookmark_manager/js/main.js
index ce3418323bfcec97cff04eb5cf6c871f306c1b5e..423ea4fe876fb8c8a217e6e98c0b4dbd35c04d25 100644
--- a/chrome/browser/resources/bookmark_manager/js/main.js
+++ b/chrome/browser/resources/bookmark_manager/js/main.js
@@ -44,11 +44,6 @@ var performGlobalUndo;
var linkController;
/**
- * New Windows are not allowed in Windows 8 metro mode.
- */
-var canOpenNewWindows = true;
-
-/**
* Incognito mode availability can take the following values: ,
* - 'enabled' for when both normal and incognito modes are available;
* - 'disabled' for when incognito mode is disabled;
@@ -577,7 +572,7 @@ function canExecuteShared(e, isSearch) {
updateOpenCommand(e, command,
'open_in_new_window', 'open_all_new_window',
// Disabled when incognito is forced.
- incognitoModeAvailability == 'forced' || !canOpenNewWindows);
+ incognitoModeAvailability == 'forced');
break;
case 'open-incognito-window-command':
@@ -1536,10 +1531,6 @@ function continueInitializeBookmarkManager(localizedStrings) {
incognitoModeAvailability = result;
});
- chrome.bookmarkManagerPrivate.canOpenNewWindows(function(result) {
- canOpenNewWindows = result;
- });
-
cr.ui.FocusOutlineManager.forDocument(document);
initializeSplitter();
bmm.addBookmarkModelListeners();

Powered by Google App Engine
This is Rietveld 408576698