OLD | NEW |
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/mount_path_util.h" | 5 #include "chrome/browser/chromeos/file_system_provider/mount_path_util.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 return false; | 93 return false; |
94 | 94 |
95 // First, find the service handling the mount point of the URL. | 95 // First, find the service handling the mount point of the URL. |
96 const std::vector<Profile*>& profiles = | 96 const std::vector<Profile*>& profiles = |
97 g_browser_process->profile_manager()->GetLoadedProfiles(); | 97 g_browser_process->profile_manager()->GetLoadedProfiles(); |
98 | 98 |
99 for (size_t i = 0; i < profiles.size(); ++i) { | 99 for (size_t i = 0; i < profiles.size(); ++i) { |
100 Profile* original_profile = profiles[i]->GetOriginalProfile(); | 100 Profile* original_profile = profiles[i]->GetOriginalProfile(); |
101 | 101 |
102 if (original_profile != profiles[i] || | 102 if (original_profile != profiles[i] || |
103 chromeos::ProfileHelper::IsSigninProfile(original_profile)) { | 103 chromeos::ProfileHelper::IsSigninProfile(original_profile) || |
| 104 chromeos::ProfileHelper::IsLockScreenAppProfile(original_profile)) { |
104 continue; | 105 continue; |
105 } | 106 } |
106 | 107 |
107 Service* const service = Service::Get(original_profile); | 108 Service* const service = Service::Get(original_profile); |
108 if (!service) | 109 if (!service) |
109 continue; | 110 continue; |
110 | 111 |
111 ProvidedFileSystemInterface* const file_system = | 112 ProvidedFileSystemInterface* const file_system = |
112 service->GetProvidedFileSystem(url_.filesystem_id()); | 113 service->GetProvidedFileSystem(url_.filesystem_id()); |
113 if (!file_system) | 114 if (!file_system) |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 for (size_t i = 3; i < components.size(); ++i) { | 173 for (size_t i = 3; i < components.size(); ++i) { |
173 file_path_ = file_path_.Append(components[i]); | 174 file_path_ = file_path_.Append(components[i]); |
174 } | 175 } |
175 | 176 |
176 return true; | 177 return true; |
177 } | 178 } |
178 | 179 |
179 } // namespace util | 180 } // namespace util |
180 } // namespace file_system_provider | 181 } // namespace file_system_provider |
181 } // namespace chromeos | 182 } // namespace chromeos |
OLD | NEW |