summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/chromeos/web_socket_proxy.cc9
-rw-r--r--chrome/browser/debugger/devtools_file_util.cc5
-rw-r--r--chrome/browser/debugger/devtools_window.cc3
-rw-r--r--chrome/browser/internal_auth.cc5
-rw-r--r--chrome/browser/metrics/metrics_log.cc3
-rw-r--r--chrome/browser/metrics/thread_watcher.cc3
-rw-r--r--chrome/browser/ui/webui/chrome_url_data_manager.cc5
-rw-r--r--chrome/browser/ui/webui/options/chromeos/system_settings_provider.cc5
-rw-r--r--chrome/browser/ui/webui/options2/chromeos/system_settings_provider2.cc5
-rw-r--r--chrome/common/mac/objc_zombie.mm5
10 files changed, 18 insertions, 30 deletions
diff --git a/chrome/browser/chromeos/web_socket_proxy.cc b/chrome/browser/chromeos/web_socket_proxy.cc
index 1ab9548..53ce784 100644
--- a/chrome/browser/chromeos/web_socket_proxy.cc
+++ b/chrome/browser/chromeos/web_socket_proxy.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -436,9 +436,7 @@ class Conn {
// Used to schedule a timeout for initial phase of connection.
scoped_ptr<struct event> destconnect_timeout_event_;
- static base::LazyInstance<EventKeyMap,
- base::LeakyLazyInstanceTraits<EventKeyMap> >
- evkey_map_;
+ static base::LazyInstance<EventKeyMap>::Leaky evkey_map_;
static EventKey last_evkey_;
DISALLOW_COPY_AND_ASSIGN(Conn);
@@ -1895,8 +1893,7 @@ void Conn::OnDestchanError(struct bufferevent* bev,
Conn::EventKey Conn::last_evkey_ = 0;
// static
-base::LazyInstance<Conn::EventKeyMap,
- base::LeakyLazyInstanceTraits<Conn::EventKeyMap> >
+base::LazyInstance<Conn::EventKeyMap>::Leaky
Conn::evkey_map_ = LAZY_INSTANCE_INITIALIZER;
} // namespace
diff --git a/chrome/browser/debugger/devtools_file_util.cc b/chrome/browser/debugger/devtools_file_util.cc
index 995bb25..ac436c9 100644
--- a/chrome/browser/debugger/devtools_file_util.cc
+++ b/chrome/browser/debugger/devtools_file_util.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -17,8 +17,7 @@ using content::BrowserThread;
namespace {
-base::LazyInstance<FilePath,
- base::LeakyLazyInstanceTraits<FilePath> >
+base::LazyInstance<FilePath>::Leaky
g_last_save_path = LAZY_INSTANCE_INITIALIZER;
class SaveAsDialog : public SelectFileDialog::Listener,
diff --git a/chrome/browser/debugger/devtools_window.cc b/chrome/browser/debugger/devtools_window.cc
index 4126d4a..ef75ea7 100644
--- a/chrome/browser/debugger/devtools_window.cc
+++ b/chrome/browser/debugger/devtools_window.cc
@@ -50,8 +50,7 @@
typedef std::vector<DevToolsWindow*> DevToolsWindowList;
namespace {
-base::LazyInstance<DevToolsWindowList,
- base::LeakyLazyInstanceTraits<DevToolsWindowList> >
+base::LazyInstance<DevToolsWindowList>::Leaky
g_instances = LAZY_INSTANCE_INITIALIZER;
} // namespace
diff --git a/chrome/browser/internal_auth.cc b/chrome/browser/internal_auth.cc
index cd7216e..ff4d51e 100644
--- a/chrome/browser/internal_auth.cc
+++ b/chrome/browser/internal_auth.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -326,8 +326,7 @@ namespace {
static base::LazyInstance<browser::InternalAuthVerificationService>
g_verification_service = LAZY_INSTANCE_INITIALIZER;
-static base::LazyInstance<base::Lock,
- base::LeakyLazyInstanceTraits<base::Lock> >
+static base::LazyInstance<base::Lock>::Leaky
g_verification_service_lock = LAZY_INSTANCE_INITIALIZER;
} // namespace
diff --git a/chrome/browser/metrics/metrics_log.cc b/chrome/browser/metrics/metrics_log.cc
index b550421..77a0ea2 100644
--- a/chrome/browser/metrics/metrics_log.cc
+++ b/chrome/browser/metrics/metrics_log.cc
@@ -66,8 +66,7 @@ PluginPrefs* GetPluginPrefs() {
} // namespace
-static base::LazyInstance<std::string,
- base::LeakyLazyInstanceTraits<std::string > >
+static base::LazyInstance<std::string>::Leaky
g_version_extension = LAZY_INSTANCE_INITIALIZER;
MetricsLog::MetricsLog(const std::string& client_id, int session_id)
diff --git a/chrome/browser/metrics/thread_watcher.cc b/chrome/browser/metrics/thread_watcher.cc
index c33bc59..e9e1f4b 100644
--- a/chrome/browser/metrics/thread_watcher.cc
+++ b/chrome/browser/metrics/thread_watcher.cc
@@ -707,8 +707,7 @@ void ThreadWatcherObserver::Observe(
// WatchDogThread methods and members.
// This lock protects g_watchdog_thread.
-static base::LazyInstance<base::Lock,
- base::LeakyLazyInstanceTraits<base::Lock> >
+static base::LazyInstance<base::Lock>::Leaky
g_watchdog_lock = LAZY_INSTANCE_INITIALIZER;
// The singleton of this class.
diff --git a/chrome/browser/ui/webui/chrome_url_data_manager.cc b/chrome/browser/ui/webui/chrome_url_data_manager.cc
index b57fb18..947f210 100644
--- a/chrome/browser/ui/webui/chrome_url_data_manager.cc
+++ b/chrome/browser/ui/webui/chrome_url_data_manager.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -28,8 +28,7 @@
using content::BrowserThread;
-static base::LazyInstance<base::Lock,
- base::LeakyLazyInstanceTraits<base::Lock> >
+static base::LazyInstance<base::Lock>::Leaky
g_delete_lock = LAZY_INSTANCE_INITIALIZER;
// static
diff --git a/chrome/browser/ui/webui/options/chromeos/system_settings_provider.cc b/chrome/browser/ui/webui/options/chromeos/system_settings_provider.cc
index 003fad2..d88c947 100644
--- a/chrome/browser/ui/webui/options/chromeos/system_settings_provider.cc
+++ b/chrome/browser/ui/webui/options/chromeos/system_settings_provider.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -121,8 +121,7 @@ static const char* kTimeZones[] = {
"Pacific/Tongatapu",
};
-static base::LazyInstance<base::Lock,
- base::LeakyLazyInstanceTraits<base::Lock> >
+static base::LazyInstance<base::Lock>::Leaky
g_timezone_bundle_lock = LAZY_INSTANCE_INITIALIZER;
struct UResClose {
diff --git a/chrome/browser/ui/webui/options2/chromeos/system_settings_provider2.cc b/chrome/browser/ui/webui/options2/chromeos/system_settings_provider2.cc
index 51ffde6..3479ec8 100644
--- a/chrome/browser/ui/webui/options2/chromeos/system_settings_provider2.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/system_settings_provider2.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -121,8 +121,7 @@ static const char* kTimeZones[] = {
"Pacific/Tongatapu",
};
-static base::LazyInstance<base::Lock,
- base::LeakyLazyInstanceTraits<base::Lock> >
+static base::LazyInstance<base::Lock>::Leaky
g_timezone_bundle_lock = LAZY_INSTANCE_INITIALIZER;
struct UResClose {
diff --git a/chrome/common/mac/objc_zombie.mm b/chrome/common/mac/objc_zombie.mm
index d065109..131844e 100644
--- a/chrome/common/mac/objc_zombie.mm
+++ b/chrome/common/mac/objc_zombie.mm
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -76,8 +76,7 @@ size_t g_fatZombieSize = 0;
BOOL g_zombieAllObjects = NO;
// Protects |g_zombieCount|, |g_zombieIndex|, and |g_zombies|.
-base::LazyInstance<base::Lock, base::LeakyLazyInstanceTraits<base::Lock> >
- g_lock = LAZY_INSTANCE_INITIALIZER;
+base::LazyInstance<base::Lock>::Leaky g_lock = LAZY_INSTANCE_INITIALIZER;
// How many zombies to keep before freeing, and the current head of
// the circular buffer.