Chromium Code Reviews| 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/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 file_manager_util::ShowFileInFolder(full_path); | 48 file_manager_util::ShowFileInFolder(full_path); |
| 49 } | 49 } |
| 50 | 50 |
| 51 void OpenItem(const FilePath& full_path) { | 51 void OpenItem(const FilePath& full_path) { |
| 52 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 52 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 53 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, | 53 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, |
| 54 base::Bind(&OpenItemOnFileThread, full_path)); | 54 base::Bind(&OpenItemOnFileThread, full_path)); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void OpenExternal(const GURL& url) { | 57 void OpenExternal(const GURL& url) { |
| 58 if (url.SchemeIs("mailto")) { | |
|
benwells
2012/04/26 00:34:42
I know I asked for this change, but ... we discuss
Mr4D (OOO till 08-26)
2012/04/26 13:46:35
Well - I have tried all cases I could come up with
| |
| 59 std::string string_url = kGmailComposeUrl; | |
| 60 string_url.append(url.spec()); | |
| 61 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, | |
| 62 base::Bind(OpenURL, string_url)); | |
| 63 } | |
| 64 } | 58 } |
| 65 | 59 |
| 66 } // namespace platform_util | 60 } // namespace platform_util |
| OLD | NEW |