diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-21 04:55:52 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-21 04:55:52 +0000 |
commit | 20305ec6f1acf21392c2f3938a14a96f1e28e76d (patch) | |
tree | 6eff1f7be4bad1a1362d3466f0ac59292dc51acc /chrome/tools/crash_service | |
parent | c6e8346b56ab61b35845aefcf9b241c654fe1253 (diff) | |
download | chromium_src-20305ec6f1acf21392c2f3938a14a96f1e28e76d.zip chromium_src-20305ec6f1acf21392c2f3938a14a96f1e28e76d.tar.gz chromium_src-20305ec6f1acf21392c2f3938a14a96f1e28e76d.tar.bz2 |
Remove obsolete base/lock.h and fix up callers to use the new header file and
the base namespace. Fix several files including lock.h unnecessarily.
BUG=none
TEST=none
Original review=http://codereview.chromium.org/6142009/
Patch by leviw@chromium.org
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72106 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools/crash_service')
-rw-r--r-- | chrome/tools/crash_service/crash_service.cc | 6 | ||||
-rw-r--r-- | chrome/tools/crash_service/crash_service.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/chrome/tools/crash_service/crash_service.cc b/chrome/tools/crash_service/crash_service.cc index 4697e92..e672880 100644 --- a/chrome/tools/crash_service/crash_service.cc +++ b/chrome/tools/crash_service/crash_service.cc @@ -162,7 +162,7 @@ CrashService::CrashService(const std::wstring& report_dir) } CrashService::~CrashService() { - AutoLock lock(sending_); + base::AutoLock lock(sending_); delete dumper_; delete sender_; } @@ -316,7 +316,7 @@ void CrashService::OnClientExited(void* context, // thread takes the sending_ lock, so the sleep is just to give it a // chance to start. ::Sleep(1000); - AutoLock lock(self->sending_); + base::AutoLock lock(self->sending_); // Some people can restart chrome very fast, check again if we have // a new client before exiting for real. if (self->clients_connected_ == self->clients_terminated_) { @@ -396,7 +396,7 @@ unsigned long CrashService::AsyncSendDump(void* context) { { // Take the server lock while sending. This also prevent early // termination of the service object. - AutoLock lock(info->self->sending_); + base::AutoLock lock(info->self->sending_); VLOG(1) << "trying to send report for pid = " << info->pid; google_breakpad::ReportResult send_result = info->self->sender_->SendCrashReport(kCrashReportURL, info->map, diff --git a/chrome/tools/crash_service/crash_service.h b/chrome/tools/crash_service/crash_service.h index 2d4c472..82bc4be 100644 --- a/chrome/tools/crash_service/crash_service.h +++ b/chrome/tools/crash_service/crash_service.h @@ -10,7 +10,7 @@ #include "base/basictypes.h" #include "base/file_path.h" -#include "base/lock.h" +#include "base/synchronization/lock.h" namespace google_breakpad { @@ -109,7 +109,7 @@ class CrashService { int requests_sent_; volatile long clients_connected_; volatile long clients_terminated_; - Lock sending_; + base::Lock sending_; DISALLOW_COPY_AND_ASSIGN(CrashService); }; |