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

Unified Diff: chrome/browser/system_monitor/removable_device_notifications_window_win.cc

Issue 10991029: Media galleries: disable detection of attached devices during startup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/system_monitor/removable_device_notifications_window_win.cc
diff --git a/chrome/browser/system_monitor/removable_device_notifications_window_win.cc b/chrome/browser/system_monitor/removable_device_notifications_window_win.cc
index bb3caad1f175cedb063235a9596cde3c698c79cf..858928fc4a2d813372971b3eb23116b66f7fbc4f 100644
--- a/chrome/browser/system_monitor/removable_device_notifications_window_win.cc
+++ b/chrome/browser/system_monitor/removable_device_notifications_window_win.cc
@@ -279,9 +279,14 @@ void RemovableDeviceNotificationsWindowWin::DoInit(
instance_, 0);
SetWindowLongPtr(window_, GWLP_USERDATA, reinterpret_cast<LONG_PTR>(this));
- std::vector<FilePath> removable_devices = get_attached_devices_func();
- for (size_t i = 0; i < removable_devices.size(); i++)
- AddNewDevice(removable_devices[i]);
+ // Disable detection of attached devices during start up (except for tests)
+ // to track down http://crbug.com/150608 Revert if it turns out not to be
+ // the problem.
+ if (get_attached_devices_func != GetAttachedDevices) {
+ std::vector<FilePath> removable_devices = get_attached_devices_func();
+ for (size_t i = 0; i < removable_devices.size(); i++)
+ AddNewDevice(removable_devices[i]);
+ }
}
void RemovableDeviceNotificationsWindowWin::AddNewDevice(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698