OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_manager/path_util.h" | 5 #include "chrome/browser/chromeos/file_manager/path_util.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/sys_info.h" | 9 #include "base/sys_info.h" |
10 #include "chrome/browser/chromeos/drive/file_system_util.h" | 10 #include "chrome/browser/chromeos/drive/file_system_core_util.h" |
11 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 11 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
12 #include "chrome/browser/download/download_prefs.h" | 12 #include "chrome/browser/download/download_prefs.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "components/user_manager/user.h" | 14 #include "components/user_manager/user.h" |
15 #include "components/user_manager/user_manager.h" | 15 #include "components/user_manager/user_manager.h" |
16 #include "net/base/escape.h" | 16 #include "net/base/escape.h" |
17 | 17 |
18 namespace file_manager { | 18 namespace file_manager { |
19 namespace util { | 19 namespace util { |
20 | 20 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 user_manager::UserManager::IsInitialized() | 65 user_manager::UserManager::IsInitialized() |
66 ? chromeos::ProfileHelper::Get()->GetUserByProfile( | 66 ? chromeos::ProfileHelper::Get()->GetUserByProfile( |
67 profile->GetOriginalProfile()) | 67 profile->GetOriginalProfile()) |
68 : NULL; | 68 : NULL; |
69 const std::string id = user ? "-" + user->username_hash() : ""; | 69 const std::string id = user ? "-" + user->username_hash() : ""; |
70 return net::EscapeQueryParamValue(kDownloadsFolderName + id, false); | 70 return net::EscapeQueryParamValue(kDownloadsFolderName + id, false); |
71 } | 71 } |
72 | 72 |
73 } // namespace util | 73 } // namespace util |
74 } // namespace file_manager | 74 } // namespace file_manager |
OLD | NEW |