OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/storage_monitor/storage_monitor.h" | 5 #include "chrome/browser/storage_monitor/storage_monitor.h" |
6 | 6 |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/storage_monitor/removable_storage_observer.h" | 9 #include "chrome/browser/storage_monitor/removable_storage_observer.h" |
10 #include "chrome/browser/storage_monitor/transient_device_ids.h" | 10 #include "chrome/browser/storage_monitor/transient_device_ids.h" |
11 | 11 |
12 namespace chrome { | 12 namespace chrome { |
13 | 13 |
14 static StorageMonitor* g_storage_monitor = NULL; | 14 static StorageMonitor* g_storage_monitor = NULL; |
15 | 15 |
16 StorageMonitor::Receiver::~Receiver() { | 16 StorageMonitor::Receiver::~Receiver() { |
17 } | 17 } |
18 | 18 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 info = it->second; | 172 info = it->second; |
173 storage_map_.erase(it); | 173 storage_map_.erase(it); |
174 } | 174 } |
175 | 175 |
176 DVLOG(1) << "RemovableStorageDetached for id " << id; | 176 DVLOG(1) << "RemovableStorageDetached for id " << id; |
177 observer_list_->Notify( | 177 observer_list_->Notify( |
178 &RemovableStorageObserver::OnRemovableStorageDetached, info); | 178 &RemovableStorageObserver::OnRemovableStorageDetached, info); |
179 } | 179 } |
180 | 180 |
181 } // namespace chrome | 181 } // namespace chrome |
OLD | NEW |