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

Side by Side Diff: chrome/browser/storage_monitor/storage_monitor_mac.mm

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 unified diff | Download patch
OLDNEW
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_mac.h" 5 #include "chrome/browser/storage_monitor/storage_monitor_mac.h"
6 6
7 #include "base/mac/foundation_util.h" 7 #include "base/mac/foundation_util.h"
8 #include "base/mac/mac_util.h" 8 #include "base/mac/mac_util.h"
9 #include "base/strings/sys_string_conversions.h" 9 #include "base/strings/sys_string_conversions.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 for (std::map<std::string, StorageInfo>::const_iterator 362 for (std::map<std::string, StorageInfo>::const_iterator
363 it = disk_info_map_.begin(); it != disk_info_map_.end(); ++it) { 363 it = disk_info_map_.begin(); it != disk_info_map_.end(); ++it) {
364 if (it->second.location() == mount_point.value()) { 364 if (it->second.location() == mount_point.value()) {
365 *info = it->second; 365 *info = it->second;
366 return true; 366 return true;
367 } 367 }
368 } 368 }
369 return false; 369 return false;
370 } 370 }
371 371
372 StorageMonitor* StorageMonitor::Create() {
373 return new StorageMonitorMac();
374 }
375
372 } // namespace chrome 376 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698