| OLD | NEW |
| 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 <gtk/gtk.h> | |
| 8 | |
| 9 #include "base/bind.h" | 7 #include "base/bind.h" |
| 10 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 11 #include "base/process_util.h" | 9 #include "base/process_util.h" |
| 12 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 13 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
| 14 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
| 15 | 13 |
| 16 using content::BrowserThread; | 14 using content::BrowserThread; |
| 17 | 15 |
| 18 namespace { | 16 namespace { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 } | 79 } |
| 82 | 80 |
| 83 void OpenExternal(const GURL& url) { | 81 void OpenExternal(const GURL& url) { |
| 84 if (url.SchemeIs("mailto")) | 82 if (url.SchemeIs("mailto")) |
| 85 XDGEmail(url.spec()); | 83 XDGEmail(url.spec()); |
| 86 else | 84 else |
| 87 XDGOpen(url.spec()); | 85 XDGOpen(url.spec()); |
| 88 } | 86 } |
| 89 | 87 |
| 90 } // namespace platform_util | 88 } // namespace platform_util |
| OLD | NEW |