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

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

Issue 6594063: Update a bunch of files to the new location of browser_thread.h (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/power_save_blocker_mac.cc ('k') | chrome/browser/shell_integration_linux.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) 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 // On Linux, when the user tries to launch a second copy of chrome, we check 5 // On Linux, when the user tries to launch a second copy of chrome, we check
6 // for a socket in the user's profile directory. If the socket file is open we 6 // for a socket in the user's profile directory. If the socket file is open we
7 // send a message to the first chrome browser process with the current 7 // send a message to the first chrome browser process with the current
8 // directory and second process command line flags. The second process then 8 // directory and second process command line flags. The second process then
9 // exits. 9 // exits.
10 // 10 //
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 #include "base/safe_strerror_posix.h" 69 #include "base/safe_strerror_posix.h"
70 #include "base/stl_util-inl.h" 70 #include "base/stl_util-inl.h"
71 #include "base/string_number_conversions.h" 71 #include "base/string_number_conversions.h"
72 #include "base/string_split.h" 72 #include "base/string_split.h"
73 #include "base/sys_string_conversions.h" 73 #include "base/sys_string_conversions.h"
74 #include "base/threading/platform_thread.h" 74 #include "base/threading/platform_thread.h"
75 #include "base/time.h" 75 #include "base/time.h"
76 #include "base/timer.h" 76 #include "base/timer.h"
77 #include "base/utf_string_conversions.h" 77 #include "base/utf_string_conversions.h"
78 #include "chrome/browser/browser_process.h" 78 #include "chrome/browser/browser_process.h"
79 #include "chrome/browser/browser_thread.h"
80 #if defined(TOOLKIT_GTK) 79 #if defined(TOOLKIT_GTK)
81 #include "chrome/browser/ui/gtk/process_singleton_dialog.h" 80 #include "chrome/browser/ui/gtk/process_singleton_dialog.h"
82 #endif 81 #endif
83 #include "chrome/browser/io_thread.h" 82 #include "chrome/browser/io_thread.h"
84 #include "chrome/browser/profiles/profile.h" 83 #include "chrome/browser/profiles/profile.h"
85 #include "chrome/browser/profiles/profile_manager.h" 84 #include "chrome/browser/profiles/profile_manager.h"
86 #include "chrome/browser/ui/browser_init.h" 85 #include "chrome/browser/ui/browser_init.h"
87 #include "chrome/common/chrome_constants.h" 86 #include "chrome/common/chrome_constants.h"
88 #include "chrome/common/chrome_paths.h" 87 #include "chrome/common/chrome_paths.h"
89 #include "chrome/common/chrome_switches.h" 88 #include "chrome/common/chrome_switches.h"
89 #include "content/browser/browser_thread.h"
90 #include "grit/chromium_strings.h" 90 #include "grit/chromium_strings.h"
91 #include "grit/generated_resources.h" 91 #include "grit/generated_resources.h"
92 #include "net/base/net_util.h" 92 #include "net/base/net_util.h"
93 #include "ui/base/l10n/l10n_util.h" 93 #include "ui/base/l10n/l10n_util.h"
94 94
95 const int ProcessSingleton::kTimeoutInSeconds; 95 const int ProcessSingleton::kTimeoutInSeconds;
96 96
97 namespace { 97 namespace {
98 98
99 const char kStartToken[] = "START"; 99 const char kStartToken[] = "START";
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 sock)); 979 sock));
980 980
981 return true; 981 return true;
982 } 982 }
983 983
984 void ProcessSingleton::Cleanup() { 984 void ProcessSingleton::Cleanup() {
985 UnlinkPath(socket_path_); 985 UnlinkPath(socket_path_);
986 UnlinkPath(cookie_path_); 986 UnlinkPath(cookie_path_);
987 UnlinkPath(lock_path_); 987 UnlinkPath(lock_path_);
988 } 988 }
OLDNEW
« no previous file with comments | « chrome/browser/power_save_blocker_mac.cc ('k') | chrome/browser/shell_integration_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698