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

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

Issue 14985007: Revert 198844 "Move sequenced_task_runner to base/task" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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
OLDNEW
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 // 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 #include "base/command_line.h" 61 #include "base/command_line.h"
62 #include "base/file_util.h" 62 #include "base/file_util.h"
63 #include "base/files/file_path.h" 63 #include "base/files/file_path.h"
64 #include "base/logging.h" 64 #include "base/logging.h"
65 #include "base/message_loop.h" 65 #include "base/message_loop.h"
66 #include "base/path_service.h" 66 #include "base/path_service.h"
67 #include "base/posix/eintr_wrapper.h" 67 #include "base/posix/eintr_wrapper.h"
68 #include "base/process_util.h" 68 #include "base/process_util.h"
69 #include "base/rand_util.h" 69 #include "base/rand_util.h"
70 #include "base/safe_strerror_posix.h" 70 #include "base/safe_strerror_posix.h"
71 #include "base/sequenced_task_runner_helpers.h"
71 #include "base/stl_util.h" 72 #include "base/stl_util.h"
72 #include "base/stringprintf.h" 73 #include "base/stringprintf.h"
73 #include "base/strings/string_number_conversions.h" 74 #include "base/strings/string_number_conversions.h"
74 #include "base/strings/string_split.h" 75 #include "base/strings/string_split.h"
75 #include "base/strings/sys_string_conversions.h" 76 #include "base/strings/sys_string_conversions.h"
76 #include "base/task/sequenced_task_runner_helpers.h"
77 #include "base/threading/platform_thread.h" 77 #include "base/threading/platform_thread.h"
78 #include "base/time.h" 78 #include "base/time.h"
79 #include "base/timer.h" 79 #include "base/timer.h"
80 #include "base/utf_string_conversions.h" 80 #include "base/utf_string_conversions.h"
81 #if defined(TOOLKIT_GTK) 81 #if defined(TOOLKIT_GTK)
82 #include "chrome/browser/ui/gtk/process_singleton_dialog.h" 82 #include "chrome/browser/ui/gtk/process_singleton_dialog.h"
83 #endif 83 #endif
84 #include "chrome/common/chrome_constants.h" 84 #include "chrome/common/chrome_constants.h"
85 #include "content/public/browser/browser_thread.h" 85 #include "content/public/browser/browser_thread.h"
86 #include "grit/chromium_strings.h" 86 #include "grit/chromium_strings.h"
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 } 977 }
978 978
979 void ProcessSingleton::KillProcess(int pid) { 979 void ProcessSingleton::KillProcess(int pid) {
980 // TODO(james.su@gmail.com): Is SIGKILL ok? 980 // TODO(james.su@gmail.com): Is SIGKILL ok?
981 int rv = kill(static_cast<base::ProcessHandle>(pid), SIGKILL); 981 int rv = kill(static_cast<base::ProcessHandle>(pid), SIGKILL);
982 // ESRCH = No Such Process (can happen if the other process is already in 982 // ESRCH = No Such Process (can happen if the other process is already in
983 // progress of shutting down and finishes before we try to kill it). 983 // progress of shutting down and finishes before we try to kill it).
984 DCHECK(rv == 0 || errno == ESRCH) << "Error killing process: " 984 DCHECK(rv == 0 || errno == ESRCH) << "Error killing process: "
985 << safe_strerror(errno); 985 << safe_strerror(errno);
986 } 986 }
OLDNEW
« no previous file with comments | « trunk/src/chrome/browser/printing/print_system_task_proxy.h ('k') | trunk/src/chrome/browser/profiles/profile_impl_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698