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

Unified Diff: chrome/browser/platform_util_linux.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/platform_util_internal.h ('k') | chrome/browser/platform_util_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/platform_util_linux.cc
diff --git a/chrome/browser/platform_util_linux.cc b/chrome/browser/platform_util_linux.cc
index a4f9ea9e352180b244a55abe143fbd8ec35027f8..14de7052e916ffb854d30258272769b59ca8462d 100644
--- a/chrome/browser/platform_util_linux.cc
+++ b/chrome/browser/platform_util_linux.cc
@@ -155,9 +155,8 @@ void PlatformOpenVerifiedItem(const base::FilePath& path, OpenItemType type) {
}
}
-} // namespace internal
-
-void ShowItemInFolder(Profile* profile, const base::FilePath& full_path) {
+void PlatformShowItemInFolder(Profile* profile,
+ const base::FilePath& full_path) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
base::PostTaskAndReplyWithResult(content::BrowserThread::GetBlockingPool(),
FROM_HERE,
@@ -165,6 +164,8 @@ void ShowItemInFolder(Profile* profile, const base::FilePath& full_path) {
base::Bind(&ShowItem, profile, full_path));
}
+} // namespace internal
+
void OpenExternal(Profile* profile, const GURL& url) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (url.SchemeIs("mailto"))
« no previous file with comments | « chrome/browser/platform_util_internal.h ('k') | chrome/browser/platform_util_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698