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

Side by Side Diff: chrome/browser/resources/file_manager/js/file_manager.js

Issue 22361002: Add the code to delete the unused folder-shortcut data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 4 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 // 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
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
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 })();
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