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

Unified Diff: chrome/browser/platform_util.cc

Issue 209613002: Download shelf autohides on showing in shell, just same as regular open Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added browser and unit tests. Renamed 'UserActed' to 'OpenedOrShown'. Created 4 years, 1 month 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 | « chrome/browser/ntp_snippets/fake_download_item.cc ('k') | chrome/browser/platform_util_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/platform_util.cc
diff --git a/chrome/browser/platform_util.cc b/chrome/browser/platform_util.cc
index 5cd2e45ef73213007c86668bb94730bee4517008..fbe787b73e6622e0203fea3afd2b39a64b1248d7 100644
--- a/chrome/browser/platform_util.cc
+++ b/chrome/browser/platform_util.cc
@@ -62,4 +62,10 @@ void OpenItem(Profile* profile,
item_type, callback));
}
+void ShowItemInFolder(Profile* profile, const base::FilePath& full_path) {
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
+ if (shell_operations_allowed)
+ internal::PlatformShowItemInFolder(profile, full_path);
+}
+
} // namespace platform_util
« no previous file with comments | « chrome/browser/ntp_snippets/fake_download_item.cc ('k') | chrome/browser/platform_util_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698