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

Unified Diff: chrome/browser/resources/file_manager/js/directory_contents.js

Issue 13913009: filemanger: Pass SHARED_WITH_ME search type to searchDriveMetadata(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments. Created 7 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
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/volume_manager.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/directory_contents.js
diff --git a/chrome/browser/resources/file_manager/js/directory_contents.js b/chrome/browser/resources/file_manager/js/directory_contents.js
index e7613a00b9af686bf413d7cc4a0ecc106c201fe0..06f977f94f432d75d15b5b233307df038bf5038a 100644
--- a/chrome/browser/resources/file_manager/js/directory_contents.js
+++ b/chrome/browser/resources/file_manager/js/directory_contents.js
@@ -827,22 +827,21 @@ DirectoryContentsDriveSearchMetadata.prototype.readNextChunk = function() {
this.lastChunkReceived();
}).bind(this);
- var types = 'ALL';
+ var types;
switch (this.searchType_) {
case DirectoryContentsDriveSearchMetadata.SearchType.SEARCH_ALL:
types = 'ALL';
break;
case DirectoryContentsDriveSearchMetadata.SearchType.SEARCH_SHARED_WITH_ME:
types = 'SHARED_WITH_ME';
+ break;
not at google - send to devlin 2013/04/10 03:58:02 then add a "default: throw Error()" case?
Haruki Sato 2013/04/10 04:01:18 Done. Thanks!
}
- // TODO(haruki): Pass the search type when searchDriveMetadata support is
- // implemented.
- // var searchParams = {
- // 'query': this.query_,
- // 'types': types,
- // 'maxResults': 500,
- // };
- chrome.fileBrowserPrivate.searchDriveMetadata(this.query_, searchCallback);
+ var searchParams = {
+ 'query': this.query_,
+ 'types': types,
+ 'maxResults': 500
+ };
+ chrome.fileBrowserPrivate.searchDriveMetadata(searchParams, searchCallback);
};
/**
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/volume_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698