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

Unified Diff: chrome/browser/ui/webui/downloads_dom_handler.cc

Issue 8439018: Open cros filemanager when "Open Downloads Folder" is clicked. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/downloads_dom_handler.cc
===================================================================
--- chrome/browser/ui/webui/downloads_dom_handler.cc (revision 108122)
+++ chrome/browser/ui/webui/downloads_dom_handler.cc (working copy)
@@ -39,6 +39,10 @@
#include "content/public/browser/browser_thread.h"
#endif
+#if defined(OS_CHROMEOS)
+#include "chrome/browser/extensions/file_manager_util.h"
+#endif
+
namespace {
// Maximum number of downloads to show. TODO(glen): Remove this and instead
@@ -357,6 +361,10 @@
#if defined(OS_MACOSX)
// Must be called from the UI thread on Mac.
platform_util::OpenItem(path);
+#elif defined(OS_CHROMEOS)
+ FileManagerUtil::ShowFullTabUrl(
+ Profile::FromBrowserContext(download_manager_->browser_context()),
+ path);
#else
BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE,
« 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