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

Unified Diff: chrome/browser/storage_monitor/storage_monitor_win.h

Issue 16703025: [StorageMonitor] Move StorageMonitor ownership to BrowserProcessImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Catch up to SystemInfoStorage eject test Created 7 years, 5 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/storage_monitor/storage_monitor_win.h
diff --git a/chrome/browser/storage_monitor/storage_monitor_win.h b/chrome/browser/storage_monitor/storage_monitor_win.h
index 6472c0df6a2e2383f377c52229fb245511fe87c6..c036fbb332646a61f7ce5d9b4fd4135d9c67fdb4 100644
--- a/chrome/browser/storage_monitor/storage_monitor_win.h
+++ b/chrome/browser/storage_monitor/storage_monitor_win.h
@@ -25,10 +25,6 @@ class VolumeMountWatcherWin;
class StorageMonitorWin : public StorageMonitor {
public:
- // Creates an instance of StorageMonitorWin. Should only be called by browser
- // start up code. Use GetInstance() instead.
- static StorageMonitorWin* Create();
-
virtual ~StorageMonitorWin();
// Must be called after the file thread is created.
@@ -49,10 +45,11 @@ class StorageMonitorWin : public StorageMonitor {
private:
class PortableDeviceNotifications;
friend class test::TestStorageMonitorWin;
+ friend StorageMonitor* StorageMonitor::Create();
// To support unit tests, this constructor takes |volume_mount_watcher| and
// |portable_device_watcher| objects. These params are either constructed in
- // unit tests or in StorageMonitorWin::Create() function.
+ // unit tests or in StorageMonitorWin Create() function.
StorageMonitorWin(VolumeMountWatcherWin* volume_mount_watcher,
PortableDeviceWatcherWin* portable_device_watcher);
« no previous file with comments | « chrome/browser/storage_monitor/storage_monitor_unittest.cc ('k') | chrome/browser/storage_monitor/storage_monitor_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698