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

Unified Diff: chrome/browser/renderer_host/pepper/device_id_fetcher.h

Issue 23903051: Eliminate CHECK from CryptohomeLibrary::LoadSystemSalt (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 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/renderer_host/pepper/device_id_fetcher.h
diff --git a/chrome/browser/renderer_host/pepper/device_id_fetcher.h b/chrome/browser/renderer_host/pepper/device_id_fetcher.h
index 1373bdffb236f4ee7e8499500f3a37c0c54b78e8..6df647d7adc24f78c547492e2ce566384ee5aae3 100644
--- a/chrome/browser/renderer_host/pepper/device_id_fetcher.h
+++ b/chrome/browser/renderer_host/pepper/device_id_fetcher.h
@@ -50,23 +50,21 @@ class DeviceIDFetcher : public base::RefCountedThreadSafe<DeviceIDFetcher> {
~DeviceIDFetcher();
// Checks the preferences for DRM (whether DRM is enabled and getting the drm
- // salt) on the UI thread. These are passed to |ComputeOnIOThread|.
+ // salt) on the UI thread.
void CheckPrefsOnUIThread();
- // Compute the device ID on the IO thread with the given salt.
- void ComputeOnIOThread(const std::string& salt);
+ // Compute the device ID on the UI thread with the given salt and machine ID.
+ void ComputeOnUIThread(const std::string& salt,
+ const std::string& machine_id);
+
// Legacy method used to get the device ID for ChromeOS.
- void ComputeOnBlockingPool(const base::FilePath& profile_path,
- const std::string& salt);
+ void LegacyComputeOnBlockingPool(const base::FilePath& profile_path,
+ const std::string& salt);
// Runs the callback passed into Start() on the IO thread with the device ID
// or the empty string on failure.
void RunCallbackOnIOThread(const std::string& id);
- // Helper which returns an ID unique to the system. Returns an empty string if
- // the call fails.
- std::string GetMachineID();
-
friend class base::RefCountedThreadSafe<DeviceIDFetcher>;
// The callback to run when the ID has been fetched.

Powered by Google App Engine
This is Rietveld 408576698