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 "chrome/browser/chromeos/extensions/file_manager_util.h" | 8 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_util.h" |
9 #include "chrome/browser/profiles/profile_manager.h" | 9 #include "chrome/browser/profiles/profile_manager.h" |
10 #include "chrome/browser/ui/browser_finder.h" | 10 #include "chrome/browser/ui/browser_finder.h" |
11 #include "chrome/browser/ui/browser_navigator.h" | 11 #include "chrome/browser/ui/browser_navigator.h" |
12 #include "chrome/browser/ui/host_desktop.h" | 12 #include "chrome/browser/ui/host_desktop.h" |
13 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 | 16 |
17 using content::BrowserThread; | 17 using content::BrowserThread; |
18 | 18 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // As such we should keep this code here. | 58 // As such we should keep this code here. |
59 if (url.SchemeIs("mailto")) { | 59 if (url.SchemeIs("mailto")) { |
60 std::string string_url = kGmailComposeUrl; | 60 std::string string_url = kGmailComposeUrl; |
61 string_url.append(url.spec()); | 61 string_url.append(url.spec()); |
62 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, | 62 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, |
63 base::Bind(OpenURL, string_url)); | 63 base::Bind(OpenURL, string_url)); |
64 } | 64 } |
65 } | 65 } |
66 | 66 |
67 } // namespace platform_util | 67 } // namespace platform_util |
OLD | NEW |