OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/process/kill.h" | 10 #include "base/process/kill.h" |
11 #include "base/process/launch.h" | 11 #include "base/process/launch.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "base/threading/sequenced_worker_pool.h" | |
15 #include "base/version.h" | 14 #include "base/version.h" |
16 #include "chrome/browser/platform_util_internal.h" | 15 #include "chrome/browser/platform_util_internal.h" |
17 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
18 #include "url/gurl.h" | 17 #include "url/gurl.h" |
19 | 18 |
20 using content::BrowserThread; | 19 using content::BrowserThread; |
21 | 20 |
22 namespace platform_util { | 21 namespace platform_util { |
23 | 22 |
24 namespace { | 23 namespace { |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 167 |
169 void OpenExternal(Profile* profile, const GURL& url) { | 168 void OpenExternal(Profile* profile, const GURL& url) { |
170 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 169 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
171 if (url.SchemeIs("mailto")) | 170 if (url.SchemeIs("mailto")) |
172 XDGEmail(url.spec()); | 171 XDGEmail(url.spec()); |
173 else | 172 else |
174 XDGOpen(base::FilePath(), url.spec()); | 173 XDGOpen(base::FilePath(), url.spec()); |
175 } | 174 } |
176 | 175 |
177 } // namespace platform_util | 176 } // namespace platform_util |
OLD | NEW |