Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: chrome/browser/platform_util_linux.cc

Issue 6672070: Move the remaining files in chrome\common to content\common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/platform_util_common_linux.cc ('k') | chrome/browser/process_singleton_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/common/process_watcher.h" 12 #include "content/common/process_watcher.h"
13 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
14 14
15 namespace { 15 namespace {
16 16
17 void XDGUtil(const std::string& util, const std::string& arg) { 17 void XDGUtil(const std::string& util, const std::string& arg) {
18 std::vector<std::string> argv; 18 std::vector<std::string> argv;
19 argv.push_back(util); 19 argv.push_back(util);
20 argv.push_back(arg); 20 argv.push_back(arg);
21 21
22 base::environment_vector env; 22 base::environment_vector env;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 void OpenExternal(const GURL& url) { 71 void OpenExternal(const GURL& url) {
72 if (url.SchemeIs("mailto")) 72 if (url.SchemeIs("mailto"))
73 XDGEmail(url.spec()); 73 XDGEmail(url.spec());
74 else 74 else
75 XDGOpen(url.spec()); 75 XDGOpen(url.spec());
76 } 76 }
77 77
78 } // namespace platform_util 78 } // namespace platform_util
OLDNEW
« no previous file with comments | « chrome/browser/platform_util_common_linux.cc ('k') | chrome/browser/process_singleton_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698