From 71f40a766274aec0a473b4a757d85abf42ad6718 Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Wed, 16 May 2012 07:26:59 +0000 Subject: Cleanup: Remove unneeded scoped_ptr.h includes from ppapi, printing, remoting, and sync. BUG=none TEST=none TBR=brettw,hclam,akalin,abodenha Review URL: https://chromiumcodereview.appspot.com/10387107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137376 0039d316-1c4b-4281-b951-d872f2087c98 --- sync/sessions/sync_session_context.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sync/sessions') diff --git a/sync/sessions/sync_session_context.h b/sync/sessions/sync_session_context.h index 117afc4..12a9a44 100644 --- a/sync/sessions/sync_session_context.h +++ b/sync/sessions/sync_session_context.h @@ -21,9 +21,9 @@ #include #include +#include #include "base/gtest_prod_util.h" -#include "base/memory/scoped_ptr.h" #include "base/time.h" #include "sync/engine/model_safe_worker.h" #include "sync/engine/syncer_types.h" @@ -89,7 +89,7 @@ class SyncSessionContext { bool notifications_enabled() { return notifications_enabled_; } // Account name, set once a directory has been opened. - void set_account_name(const std::string name) { + void set_account_name(const std::string& name) { DCHECK(account_name_.empty()); account_name_ = name; } @@ -200,7 +200,8 @@ class ScopedSessionContextConflictResolver { } ~ScopedSessionContextConflictResolver() { context_->resolver_ = NULL; - } + } + private: SyncSessionContext* context_; ConflictResolver* resolver_; -- cgit v1.1