diff options
author | gbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-19 20:23:27 +0000 |
---|---|---|
committer | gbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-19 20:23:27 +0000 |
commit | 6d7ba1a4b427c9bacbd4ca9fc07d7c934fc45165 (patch) | |
tree | a42d60dc198baac0b4d2496d5c128bee5edab4d3 /chrome/browser/chrome_browser_main_linux.h | |
parent | b38fccb1e7d99a2e25ad77cd5ab8a61252b7ad24 (diff) | |
download | chromium_src-6d7ba1a4b427c9bacbd4ca9fc07d7c934fc45165.zip chromium_src-6d7ba1a4b427c9bacbd4ca9fc07d7c934fc45165.tar.gz chromium_src-6d7ba1a4b427c9bacbd4ca9fc07d7c934fc45165.tar.bz2 |
Regularize ownerships and lifecycle for storage monitor platform classes.
This change regularizes the construction lifecycle of the StorageMonitor implementations so that they always exist for the construction of the Profile, but don't issue any notifications until after that construction is complete. This allows profile-based listeners to be sure they're synchronized with the monitor.
It also regularizes ownership of all storage-monitor-related objects. The base platform-specific object is owned by the ChromeBrowserMain object, and owns all subsidiary platform-specific objects needed to monitor and/or deal with volumes of various types (i.e. MTP).
R=vandebo@chromium.org
BUG=None
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=187332
Review URL: https://chromiumcodereview.appspot.com/12334096
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189078 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_browser_main_linux.h')
-rw-r--r-- | chrome/browser/chrome_browser_main_linux.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/chrome/browser/chrome_browser_main_linux.h b/chrome/browser/chrome_browser_main_linux.h index 44e074f..e9f2c43 100644 --- a/chrome/browser/chrome_browser_main_linux.h +++ b/chrome/browser/chrome_browser_main_linux.h @@ -17,10 +17,6 @@ class StorageMonitorLinux; } #endif -namespace chrome { -class MediaTransferProtocolDeviceObserverLinux; -} - class ChromeBrowserMainPartsLinux : public ChromeBrowserMainPartsPosix { public: explicit ChromeBrowserMainPartsLinux( @@ -36,9 +32,6 @@ class ChromeBrowserMainPartsLinux : public ChromeBrowserMainPartsPosix { #if !defined(OS_CHROMEOS) scoped_refptr<chrome::StorageMonitorLinux> storage_monitor_; #endif - scoped_ptr<chrome::MediaTransferProtocolDeviceObserverLinux> - media_transfer_protocol_device_observer_; - bool initialized_media_transfer_protocol_manager_; DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsLinux); }; |