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

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

Issue 292723004: Remove ClonedInstallDetector/MachineIdProvider //content dependencies (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build Created 6 years, 7 months 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/machine_id_provider_win.cc
diff --git a/chrome/browser/metrics/machine_id_provider_win.cc b/chrome/browser/metrics/machine_id_provider_win.cc
index c3320bccb4b3cbdd5f5b1bf6f85047847ba4586d..c5c6c723498178b7eb0821097e82d329c482939b 100644
--- a/chrome/browser/metrics/machine_id_provider_win.cc
+++ b/chrome/browser/metrics/machine_id_provider_win.cc
@@ -10,8 +10,8 @@
#include "base/base_paths.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
+#include "base/threading/thread_restrictions.h"
#include "base/win/scoped_handle.h"
-#include "content/public/browser/browser_thread.h"
namespace metrics {
@@ -21,7 +21,7 @@ MachineIdProvider::~MachineIdProvider() {}
// On windows, the machine id is based on the serial number of the drive Chrome
// is running from.
std::string MachineIdProvider::GetMachineId() {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE));
+ base::ThreadRestrictions::AssertIOAllowed();
// Use the program's path to get the drive used for the machine id. This means
// that whenever the underlying drive changes, it's considered a new machine.
« no previous file with comments | « chrome/browser/metrics/cloned_install_detector.cc ('k') | chrome/browser/metrics/machine_id_provider_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698