| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include "app/gtk_util.h" | |
| 10 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 11 #include "base/process_util.h" | 10 #include "base/process_util.h" |
| 12 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 13 #include "chrome/common/process_watcher.h" | 12 #include "chrome/common/process_watcher.h" |
| 14 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 15 | 14 |
| 16 namespace { | 15 namespace { |
| 17 | 16 |
| 18 void XDGOpen(const std::string& path) { | 17 void XDGOpen(const std::string& path) { |
| 19 std::vector<std::string> argv; | 18 std::vector<std::string> argv; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 58 |
| 60 void OpenItem(const FilePath& full_path) { | 59 void OpenItem(const FilePath& full_path) { |
| 61 XDGOpen(full_path.value()); | 60 XDGOpen(full_path.value()); |
| 62 } | 61 } |
| 63 | 62 |
| 64 void OpenExternal(const GURL& url) { | 63 void OpenExternal(const GURL& url) { |
| 65 XDGOpen(url.spec()); | 64 XDGOpen(url.spec()); |
| 66 } | 65 } |
| 67 | 66 |
| 68 } // namespace platform_util | 67 } // namespace platform_util |
| OLD | NEW |