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

Side by Side Diff: chrome/browser/platform_util_chromeos.cc

Issue 8851007: WIP / Do not commit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/platform_util.h ('k') | chrome/browser/platform_util_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/platform_util.h" 5 #include "chrome/browser/platform_util.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/task.h" 9 #include "base/task.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } // namespace 71 } // namespace
72 72
73 namespace platform_util { 73 namespace platform_util {
74 74
75 void ShowItemInFolder(const FilePath& full_path) { 75 void ShowItemInFolder(const FilePath& full_path) {
76 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 76 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
77 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, 77 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
78 base::Bind(&ShowItemInFolderOnFileThread, full_path)); 78 base::Bind(&ShowItemInFolderOnFileThread, full_path));
79 } 79 }
80 80
81 void OpenItem(const FilePath& full_path) { 81 void OpenItem(const FilePath& full_path, base::ProcessHandle* process_handle) {
82 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 82 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
83 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, 83 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
84 base::Bind(&OpenItemOnFileThread, full_path)); 84 base::Bind(&OpenItemOnFileThread, full_path));
85 } 85 }
86 86
87 void OpenExternal(const GURL& url) { 87 void OpenExternal(const GURL& url) {
88 if (url.SchemeIs("mailto")) { 88 if (url.SchemeIs("mailto")) {
89 std::string string_url = kGmailComposeUrl; 89 std::string string_url = kGmailComposeUrl;
90 string_url.append(url.spec()); 90 string_url.append(url.spec());
91 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, 91 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
92 base::Bind(OpenURL, string_url)); 92 base::Bind(OpenURL, string_url));
93 } 93 }
94 } 94 }
95 95
96 } // namespace platform_util 96 } // namespace platform_util
OLDNEW
« no previous file with comments | « chrome/browser/platform_util.h ('k') | chrome/browser/platform_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698