Add missing base::lock usage.
TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6336010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72108 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
ceee
chrome/browser
chrome_frame
@ -20,7 +20,7 @@
|
|||||||
namespace {
|
namespace {
|
||||||
// This lock ensures that histograms created by the broker are thread safe.
|
// This lock ensures that histograms created by the broker are thread safe.
|
||||||
// The histograms created here can be initialized on multiple threads.
|
// The histograms created here can be initialized on multiple threads.
|
||||||
Lock g_metrics_lock;
|
base::Lock g_metrics_lock;
|
||||||
|
|
||||||
RPC_STATUS PrepareEndpoint(std::wstring endpoint) {
|
RPC_STATUS PrepareEndpoint(std::wstring endpoint) {
|
||||||
std::wstring protocol = kRpcProtocol;
|
std::wstring protocol = kRpcProtocol;
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#include "ceee/ie/common/ceee_module_util.h"
|
#include "ceee/ie/common/ceee_module_util.h"
|
||||||
|
|
||||||
WindowMessageSource::MessageSourceMap WindowMessageSource::message_source_map_;
|
WindowMessageSource::MessageSourceMap WindowMessageSource::message_source_map_;
|
||||||
Lock WindowMessageSource::lock_;
|
base::Lock WindowMessageSource::lock_;
|
||||||
|
|
||||||
WindowMessageSource::WindowMessageSource()
|
WindowMessageSource::WindowMessageSource()
|
||||||
: create_thread_id_(::GetCurrentThreadId()),
|
: create_thread_id_(::GetCurrentThreadId()),
|
||||||
|
@ -14,7 +14,7 @@ testing::InstanceCountMixinBase::InstanceSet instances;
|
|||||||
|
|
||||||
namespace testing {
|
namespace testing {
|
||||||
|
|
||||||
Lock InstanceCountMixinBase::lock_;
|
base::Lock InstanceCountMixinBase::lock_;
|
||||||
|
|
||||||
InstanceCountMixinBase::InstanceCountMixinBase() {
|
InstanceCountMixinBase::InstanceCountMixinBase() {
|
||||||
base::AutoLock lock(lock_);
|
base::AutoLock lock(lock_);
|
||||||
|
@ -59,7 +59,7 @@ namespace {
|
|||||||
|
|
||||||
// Used to protect the LoadedModuleVector which is accessed
|
// Used to protect the LoadedModuleVector which is accessed
|
||||||
// from both the UI thread and the FILE thread.
|
// from both the UI thread and the FILE thread.
|
||||||
Lock* lock = NULL;
|
base::Lock* lock = NULL;
|
||||||
|
|
||||||
// A struct to help de-duping modules before adding them to the enumerated
|
// A struct to help de-duping modules before adding them to the enumerated
|
||||||
// modules vector.
|
// modules vector.
|
||||||
|
@ -83,7 +83,7 @@ class TypeInfoCache {
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
typedef std::map<const IID*, TypeInfoNameCache*> CacheMap;
|
typedef std::map<const IID*, TypeInfoNameCache*> CacheMap;
|
||||||
Lock lock_;
|
base::Lock lock_;
|
||||||
CacheMap cache_;
|
CacheMap cache_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ END_VTABLE_PATCHES()
|
|||||||
|
|
||||||
// Static map initialization
|
// Static map initialization
|
||||||
ProtData::ProtocolDataMap ProtData::datamap_;
|
ProtData::ProtocolDataMap ProtData::datamap_;
|
||||||
Lock ProtData::datamap_lock_;
|
base::Lock ProtData::datamap_lock_;
|
||||||
|
|
||||||
ProtocolSinkWrap::ProtocolSinkWrap() {
|
ProtocolSinkWrap::ProtocolSinkWrap() {
|
||||||
DVLOG(1) << __FUNCTION__ << base::StringPrintf(" 0x%08X", this);
|
DVLOG(1) << __FUNCTION__ << base::StringPrintf(" 0x%08X", this);
|
||||||
|
@ -133,7 +133,7 @@ class ProtData : public base::RefCounted<ProtData> {
|
|||||||
private:
|
private:
|
||||||
typedef std::map<IInternetProtocol*, ProtData*> ProtocolDataMap;
|
typedef std::map<IInternetProtocol*, ProtData*> ProtocolDataMap;
|
||||||
static ProtocolDataMap datamap_;
|
static ProtocolDataMap datamap_;
|
||||||
static Lock datamap_lock_;
|
static base::Lock datamap_lock_;
|
||||||
|
|
||||||
// Url we are retrieving. Used for RendererTypeForUrl() only.
|
// Url we are retrieving. Used for RendererTypeForUrl() only.
|
||||||
std::wstring url_;
|
std::wstring url_;
|
||||||
|
@ -200,7 +200,7 @@ TEST_F(VtablePatchManagerTest, DoublePatch) {
|
|||||||
|
|
||||||
namespace vtable_patch {
|
namespace vtable_patch {
|
||||||
// Expose internal implementation detail, purely for testing.
|
// Expose internal implementation detail, purely for testing.
|
||||||
extern Lock patch_lock_;
|
extern base::Lock patch_lock_;
|
||||||
|
|
||||||
} // namespace vtable_patch
|
} // namespace vtable_patch
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user