Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4877)

Unified Diff: chrome/browser/metrics/metrics_service.cc

Issue 6001010: Move platform_thread to base/threading and put in the base namespace. I left ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/metrics/metrics_service.cc
===================================================================
--- chrome/browser/metrics/metrics_service.cc (revision 70328)
+++ chrome/browser/metrics/metrics_service.cc (working copy)
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-
-
//------------------------------------------------------------------------------
// Description of the life cycle of a instance of MetricsService.
//
@@ -164,6 +162,7 @@
#include "base/metrics/histogram.h"
#include "base/string_number_conversions.h"
#include "base/thread.h"
+#include "base/threading/platform_thread.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
@@ -1904,10 +1903,10 @@
}
static bool IsSingleThreaded() {
- static PlatformThreadId thread_id = 0;
+ static base::PlatformThreadId thread_id = 0;
if (!thread_id)
- thread_id = PlatformThread::CurrentId();
- return PlatformThread::CurrentId() == thread_id;
+ thread_id = base::PlatformThread::CurrentId();
+ return base::PlatformThread::CurrentId() == thread_id;
}
#if defined(OS_CHROMEOS)
« no previous file with comments | « chrome/browser/geolocation/device_data_provider_unittest.cc ('k') | chrome/browser/printing/printing_layout_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698