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

Unified Diff: chrome/browser/chromeos/drive/file_system_util.cc

Issue 2945023002: Introduce profile for lock screen apps (Closed)
Patch Set: rebase Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_manager/volume_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/file_system_util.cc
diff --git a/chrome/browser/chromeos/drive/file_system_util.cc b/chrome/browser/chromeos/drive/file_system_util.cc
index dbb73a7baea8421a08d3f831fb6ae8b6517c4860..4ff9eb2d47118c8e74b6381c6b3a417ef6492bd0 100644
--- a/chrome/browser/chromeos/drive/file_system_util.cc
+++ b/chrome/browser/chromeos/drive/file_system_util.cc
@@ -158,7 +158,8 @@ Profile* ExtractProfileFromPath(const base::FilePath& path) {
for (size_t i = 0; i < profiles.size(); ++i) {
Profile* original_profile = profiles[i]->GetOriginalProfile();
if (original_profile == profiles[i] &&
- !chromeos::ProfileHelper::IsSigninProfile(original_profile)) {
+ !chromeos::ProfileHelper::IsSigninProfile(original_profile) &&
+ !chromeos::ProfileHelper::IsLockScreenAppProfile(original_profile)) {
const base::FilePath base = GetDriveMountPointPath(original_profile);
if (base == path || base.IsParent(path))
return original_profile;
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_manager/volume_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698