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

Unified Diff: chrome/browser/chromeos/extensions/file_browser_private_api.cc

Issue 10411018: [FileBrowser] Added DefaultAction dialog to choose default action. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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/chromeos/extensions/file_browser_private_api.cc
diff --git a/chrome/browser/chromeos/extensions/file_browser_private_api.cc b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
index c8008a0addce58a1c7544c00fd0b39cdedaba98a..369d03370ef801577e10d529585047aaf795307f 100644
--- a/chrome/browser/chromeos/extensions/file_browser_private_api.cc
+++ b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
@@ -628,6 +628,23 @@ void ExecuteTasksFileBrowserFunction::OnTaskExecuted(bool success) {
SendResponse(success);
}
+SetDefaultTaskFileBrowserFunction::SetDefaultTaskFileBrowserFunction() {}
+
+SetDefaultTaskFileBrowserFunction::~SetDefaultTaskFileBrowserFunction() {}
+
+bool SetDefaultTaskFileBrowserFunction::RunImpl() {
+ // First param is task id that was to the extension with setDefaultTask call.
+ std::string task_id;
+ if (!args_->GetString(0, &task_id) || !task_id.size())
+ return false;
+
+ file_handler_util::UpdateFileHandlerUsageStats(profile_, task_id);
dgozman 2012/05/18 14:50:06 This probably should be called on UI thread?
Dmitry Zvorygin 2012/05/22 14:32:59 Done.
+
+ result_.reset(new base::FundamentalValue(true));
+ SendResponse(true);
+ return true;
+}
+
FileBrowserFunction::FileBrowserFunction() {
}

Powered by Google App Engine
This is Rietveld 408576698