summaryrefslogtreecommitdiffstats
path: root/sync
diff options
context:
space:
mode:
authordbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-21 04:44:14 +0000
committerdbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-21 04:44:14 +0000
commit997ec9fba33d3dabd0f8dff77008f8c18b1c0e77 (patch)
tree212fc4b375b7c8ae9cc301dcdf16534649893e61 /sync
parent50d19e7175c1f43a6b3ebb9f82c81364746c2f00 (diff)
downloadchromium_src-997ec9fba33d3dabd0f8dff77008f8c18b1c0e77.zip
chromium_src-997ec9fba33d3dabd0f8dff77008f8c18b1c0e77.tar.gz
chromium_src-997ec9fba33d3dabd0f8dff77008f8c18b1c0e77.tar.bz2
[base] Move AutoReset to base namespace.
NOTRY=true R=darin@chromium.org BUG=None Review URL: https://chromiumcodereview.appspot.com/11308132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168978 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync')
-rw-r--r--sync/engine/sync_scheduler_impl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sync/engine/sync_scheduler_impl.cc b/sync/engine/sync_scheduler_impl.cc
index 3f8dadf..76a72f0 100644
--- a/sync/engine/sync_scheduler_impl.cc
+++ b/sync/engine/sync_scheduler_impl.cc
@@ -747,7 +747,7 @@ bool SyncSchedulerImpl::DoSyncSessionJob(scoped_ptr<SyncSessionJob> job) {
session_context_->routing_info(), session_context_->workers());
}
- AutoReset<bool> protector(&no_scheduling_allowed_, true);
+ base::AutoReset<bool> protector(&no_scheduling_allowed_, true);
JobProcessDecision decision = DecideOnJob(*job);
SDVLOG(2) << "Should run "
<< SyncSessionJob::GetPurposeString(job->purpose())
@@ -816,7 +816,7 @@ bool SyncSchedulerImpl::FinishSyncSessionJob(scoped_ptr<SyncSessionJob> job,
// Let job know that we're through syncing (calling SyncShare) at this point.
bool succeeded = false;
{
- AutoReset<bool> protector(&no_scheduling_allowed_, true);
+ base::AutoReset<bool> protector(&no_scheduling_allowed_, true);
succeeded = job->Finish(exited_prematurely);
}