diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-28 00:34:40 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-28 00:34:40 +0000 |
commit | da9ccfb9ad498ff45b8d553968e0de01ac46fb28 (patch) | |
tree | 0d6084c8e7b15a627d2bf16cc62bc3a7bd346051 /base | |
parent | 6f1485ee6a559b469b93f6fb56b0e70dc8b3edf1 (diff) | |
download | chromium_src-da9ccfb9ad498ff45b8d553968e0de01ac46fb28.zip chromium_src-da9ccfb9ad498ff45b8d553968e0de01ac46fb28.tar.gz chromium_src-da9ccfb9ad498ff45b8d553968e0de01ac46fb28.tar.bz2 |
Cleanup: Remove static storage for variables in an unnamed namespace.
BUG=none
TEST=none
R=binji
Review URL: https://chromiumcodereview.appspot.com/9271061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119535 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/linux_util.cc | 2 | ||||
-rw-r--r-- | base/nix/mime_util_xdg.cc | 6 | ||||
-rw-r--r-- | base/path_service.cc | 10 | ||||
-rw-r--r-- | base/tracked_objects.cc | 8 |
4 files changed, 14 insertions, 12 deletions
diff --git a/base/linux_util.cc b/base/linux_util.cc index 247580d..0a9ef56 100644 --- a/base/linux_util.cc +++ b/base/linux_util.cc @@ -73,7 +73,7 @@ class LinuxDistroHelper { #endif // if defined(OS_LINUX) // expected prefix of the target of the /proc/self/fd/%d link for a socket -static const char kSocketLinkPrefix[] = "socket:["; +const char kSocketLinkPrefix[] = "socket:["; // Parse a symlink in /proc/pid/fd/$x and return the inode number of the // socket. diff --git a/base/nix/mime_util_xdg.cc b/base/nix/mime_util_xdg.cc index 8d21d52..6cd5945 100644 --- a/base/nix/mime_util_xdg.cc +++ b/base/nix/mime_util_xdg.cc @@ -31,13 +31,13 @@ namespace { +class IconTheme; + // None of the XDG stuff is thread-safe, so serialize all access under // this lock. -static base::LazyInstance<base::Lock>::Leaky +base::LazyInstance<base::Lock>::Leaky g_mime_util_xdg_lock = LAZY_INSTANCE_INITIALIZER; -class IconTheme; - class MimeUtilConstants { public: typedef std::map<std::string, IconTheme*> IconThemeMap; diff --git a/base/path_service.cc b/base/path_service.cc index 47278c3..46f394c 100644 --- a/base/path_service.cc +++ b/base/path_service.cc @@ -46,7 +46,7 @@ struct Provider { bool is_static; }; -static Provider base_provider = { +Provider base_provider = { base::PathProvider, NULL, #ifndef NDEBUG @@ -57,7 +57,7 @@ static Provider base_provider = { }; #if defined(OS_WIN) -static Provider base_provider_win = { +Provider base_provider_win = { base::PathProviderWin, &base_provider, #ifndef NDEBUG @@ -69,7 +69,7 @@ static Provider base_provider_win = { #endif #if defined(OS_MACOSX) -static Provider base_provider_mac = { +Provider base_provider_mac = { base::PathProviderMac, &base_provider, #ifndef NDEBUG @@ -81,7 +81,7 @@ static Provider base_provider_mac = { #endif #if defined(OS_ANDROID) -static Provider base_provider_android = { +Provider base_provider_android = { base::PathProviderAndroid, &base_provider, #ifndef NDEBUG @@ -93,7 +93,7 @@ static Provider base_provider_android = { #endif #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) -static Provider base_provider_posix = { +Provider base_provider_posix = { base::PathProviderPosix, &base_provider, #ifndef NDEBUG diff --git a/base/tracked_objects.cc b/base/tracked_objects.cc index 884cd56..71b3bc6 100644 --- a/base/tracked_objects.cc +++ b/base/tracked_objects.cc @@ -19,11 +19,12 @@ using base::TimeDelta; namespace tracked_objects { namespace { + // Flag to compile out almost all of the task tracking code. -static const bool kTrackAllTaskObjects = true; +const bool kTrackAllTaskObjects = true; // Flag to compile out parent-child link recording. -static const bool kTrackParentChildLinks = false; +const bool kTrackParentChildLinks = false; // When ThreadData is first initialized, should we start in an ACTIVE state to // record all of the startup-time tasks, or should we start up DEACTIVATED, so @@ -31,8 +32,9 @@ static const bool kTrackParentChildLinks = false; // Note that the flag may force either state, so this really controls only the // period of time up until that flag is parsed. If there is no flag seen, then // this state may prevail for much or all of the process lifetime. -static const ThreadData::Status kInitialStartupState = +const ThreadData::Status kInitialStartupState = ThreadData::PROFILING_CHILDREN_ACTIVE; + } // namespace //------------------------------------------------------------------------------ |