Skip to content

Commit

Permalink
drive: Add Log for SearchDriveMetadataFunction
Browse files Browse the repository at this point in the history
BUG=241951

Review URL: https://chromiumcodereview.appspot.com/15818002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201819 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
hashimoto@chromium.org committed May 23, 2013
1 parent f07059d commit cea28d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2906,6 +2906,13 @@ bool SearchDriveMetadataFunction::RunImpl() {
if (!search_params->GetInteger("maxResults", &max_results_))
return false;

drive::util::Log("%s[%d] called. (types: '%s', maxResults: '%d')",
name().c_str(),
request_id(),
types_.c_str(),
max_results_);
set_log_on_completion(true);

content::SiteInstance* site_instance = render_view_host()->GetSiteInstance();
BrowserContext::GetStoragePartition(profile(), site_instance)->
GetFileSystemContext()->OpenFileSystem(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ class SearchDriveFunction : public AsyncExtensionFunction {

// Similar to SearchDriveFunction but this one is used for searching drive
// metadata which is stored locally.
class SearchDriveMetadataFunction : public AsyncExtensionFunction {
class SearchDriveMetadataFunction : public FileBrowserFunction {
public:
DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.searchDriveMetadata",
FILEBROWSERPRIVATE_SEARCHDRIVEMETADATA)
Expand Down

0 comments on commit cea28d2

Please sign in to comment.