| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 'use strict'; | 5 'use strict'; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * This variable is checked in SelectFileDialogExtensionBrowserTest. | 8 * This variable is checked in SelectFileDialogExtensionBrowserTest. |
| 9 * @type {number} | 9 * @type {number} |
| 10 */ | 10 */ |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 239 |
| 240 // Get the command line option. | 240 // Get the command line option. |
| 241 group.add(function(done) { | 241 group.add(function(done) { |
| 242 chrome.commandLinePrivate.hasSwitch( | 242 chrome.commandLinePrivate.hasSwitch( |
| 243 'file-manager-show-checkboxes', function(flag) { | 243 'file-manager-show-checkboxes', function(flag) { |
| 244 this.showCheckboxes_ = flag; | 244 this.showCheckboxes_ = flag; |
| 245 done(); | 245 done(); |
| 246 }.bind(this)); | 246 }.bind(this)); |
| 247 }.bind(this)); | 247 }.bind(this)); |
| 248 | 248 |
| 249 // Removes the user data which is no longer used. |
| 250 // TODO(yoshiki): Remove this in M31 http://crbug.com/268784/ |
| 251 chrome.storage.local.remove('folder-shortcuts-list'); |
| 252 |
| 249 group.run(callback); | 253 group.run(callback); |
| 250 }; | 254 }; |
| 251 | 255 |
| 252 /** | 256 /** |
| 253 * Request local file system, resolve roots and init_ after that. | 257 * Request local file system, resolve roots and init_ after that. |
| 254 * Warning, you can't use DOM nor any external scripts here, since it may not | 258 * Warning, you can't use DOM nor any external scripts here, since it may not |
| 255 * be loaded yet. Functions in util.* and metrics.* are available and can | 259 * be loaded yet. Functions in util.* and metrics.* are available and can |
| 256 * be used. | 260 * be used. |
| 257 * | 261 * |
| 258 * @param {function()} callback Completion callback. | 262 * @param {function()} callback Completion callback. |
| (...skipping 3609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3868 */ | 3872 */ |
| 3869 FileManager.prototype.setCtrlKeyPressed_ = function(flag) { | 3873 FileManager.prototype.setCtrlKeyPressed_ = function(flag) { |
| 3870 this.ctrlKeyPressed_ = flag; | 3874 this.ctrlKeyPressed_ = flag; |
| 3871 // Before the DOM is constructed, the key event can be handled. | 3875 // Before the DOM is constructed, the key event can be handled. |
| 3872 var cacheClearCommand = | 3876 var cacheClearCommand = |
| 3873 this.document_.querySelector('#drive-clear-local-cache'); | 3877 this.document_.querySelector('#drive-clear-local-cache'); |
| 3874 if (cacheClearCommand) | 3878 if (cacheClearCommand) |
| 3875 cacheClearCommand.canExecuteChange(); | 3879 cacheClearCommand.canExecuteChange(); |
| 3876 }; | 3880 }; |
| 3877 })(); | 3881 })(); |
| OLD | NEW |