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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/service.cc

Issue 2230203002: chrome: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed accidental components/ change Created 4 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/chromeos/file_system_provider/service.h" 5 #include "chrome/browser/chromeos/file_system_provider/service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 it->second->GetFileSystemInfo().file_system_id(); 75 it->second->GetFileSystemInfo().file_system_id();
76 const std::string extension_id = 76 const std::string extension_id =
77 it->second->GetFileSystemInfo().extension_id(); 77 it->second->GetFileSystemInfo().extension_id();
78 ++it; 78 ++it;
79 const base::File::Error unmount_result = UnmountFileSystem( 79 const base::File::Error unmount_result = UnmountFileSystem(
80 extension_id, file_system_id, UNMOUNT_REASON_SHUTDOWN); 80 extension_id, file_system_id, UNMOUNT_REASON_SHUTDOWN);
81 DCHECK_EQ(base::File::FILE_OK, unmount_result); 81 DCHECK_EQ(base::File::FILE_OK, unmount_result);
82 } 82 }
83 83
84 DCHECK_EQ(0u, file_system_map_.size()); 84 DCHECK_EQ(0u, file_system_map_.size());
85 STLDeleteValues(&file_system_map_); 85 base::STLDeleteValues(&file_system_map_);
86 } 86 }
87 87
88 // static 88 // static
89 Service* Service::Get(content::BrowserContext* context) { 89 Service* Service::Get(content::BrowserContext* context) {
90 return ServiceFactory::Get(context); 90 return ServiceFactory::Get(context);
91 } 91 }
92 92
93 void Service::AddObserver(Observer* observer) { 93 void Service::AddObserver(Observer* observer) {
94 DCHECK(observer); 94 DCHECK(observer);
95 observers_.AddObserver(observer); 95 observers_.AddObserver(observer);
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 } 459 }
460 460
461 void Service::OnWatcherListChanged( 461 void Service::OnWatcherListChanged(
462 const ProvidedFileSystemInfo& file_system_info, 462 const ProvidedFileSystemInfo& file_system_info,
463 const Watchers& watchers) { 463 const Watchers& watchers) {
464 registry_->RememberFileSystem(file_system_info, watchers); 464 registry_->RememberFileSystem(file_system_info, watchers);
465 } 465 }
466 466
467 } // namespace file_system_provider 467 } // namespace file_system_provider
468 } // namespace chromeos 468 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698