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 /printing/printed_document.cc | |
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 'printing/printed_document.cc')
-rw-r--r-- | printing/printed_document.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/printing/printed_document.cc b/printing/printed_document.cc index f50bf83..0360b5b 100644 --- a/printing/printed_document.cc +++ b/printing/printed_document.cc @@ -78,7 +78,7 @@ void PrintedDocument::SetPage(int page_number, page_rect, has_visible_overlays)); { - AutoLock lock(lock_); + base::AutoLock lock(lock_); mutable_.pages_[page_number] = page; if (mutable_.shrink_factor == 0) { mutable_.shrink_factor = shrink; @@ -91,7 +91,7 @@ void PrintedDocument::SetPage(int page_number, bool PrintedDocument::GetPage(int page_number, scoped_refptr<PrintedPage>* page) { - AutoLock lock(lock_); + base::AutoLock lock(lock_); PrintedPages::const_iterator itr = mutable_.pages_.find(page_number); if (itr != mutable_.pages_.end()) { if (itr->second.get()) { @@ -103,7 +103,7 @@ bool PrintedDocument::GetPage(int page_number, } bool PrintedDocument::IsComplete() const { - AutoLock lock(lock_); + base::AutoLock lock(lock_); if (!mutable_.page_count_) return false; PageNumber page(immutable_.settings_, mutable_.page_count_); @@ -119,14 +119,14 @@ bool PrintedDocument::IsComplete() const { } void PrintedDocument::DisconnectSource() { - AutoLock lock(lock_); + base::AutoLock lock(lock_); mutable_.source_ = NULL; } uint32 PrintedDocument::MemoryUsage() const { std::vector< scoped_refptr<PrintedPage> > pages_copy; { - AutoLock lock(lock_); + base::AutoLock lock(lock_); pages_copy.reserve(mutable_.pages_.size()); PrintedPages::const_iterator end = mutable_.pages_.end(); for (PrintedPages::const_iterator itr = mutable_.pages_.begin(); @@ -144,7 +144,7 @@ uint32 PrintedDocument::MemoryUsage() const { } void PrintedDocument::set_page_count(int max_page) { - AutoLock lock(lock_); + base::AutoLock lock(lock_); DCHECK_EQ(0, mutable_.page_count_); mutable_.page_count_ = max_page; if (immutable_.settings_.ranges.empty()) { @@ -157,12 +157,12 @@ void PrintedDocument::set_page_count(int max_page) { } int PrintedDocument::page_count() const { - AutoLock lock(lock_); + base::AutoLock lock(lock_); return mutable_.page_count_; } int PrintedDocument::expected_page_count() const { - AutoLock lock(lock_); + base::AutoLock lock(lock_); return mutable_.expected_page_count_; } |