From 6d7ba1a4b427c9bacbd4ca9fc07d7c934fc45165 Mon Sep 17 00:00:00 2001 From: "gbillock@chromium.org" Date: Tue, 19 Mar 2013 20:23:27 +0000 Subject: 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 --- chrome/browser/chrome_browser_main_linux.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'chrome/browser/chrome_browser_main_linux.h') 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 storage_monitor_; #endif - scoped_ptr - media_transfer_protocol_device_observer_; - bool initialized_media_transfer_protocol_manager_; DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsLinux); }; -- cgit v1.1