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

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

Issue 2945023002: Introduce profile for lock screen apps (Closed)
Patch Set: rebase Created 3 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 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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/file_manager/volume_manager.cc ('k') | chrome/browser/chromeos/lock_screen_apps/state_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698