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

Side by Side Diff: chrome/browser/chromeos/file_manager/path_util.cc

Issue 286933002: [cros login] Split login related classes into subfolders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in new tests Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
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/path_service.h" 9 #include "base/path_service.h"
10 #include "base/sys_info.h" 10 #include "base/sys_info.h"
11 #include "chrome/browser/chromeos/drive/file_system_util.h" 11 #include "chrome/browser/chromeos/drive/file_system_util.h"
12 #include "chrome/browser/chromeos/login/user.h" 12 #include "chrome/browser/chromeos/login/users/user.h"
13 #include "chrome/browser/chromeos/login/user_manager.h" 13 #include "chrome/browser/chromeos/login/users/user_manager.h"
14 #include "chrome/browser/chromeos/profiles/profile_helper.h" 14 #include "chrome/browser/chromeos/profiles/profile_helper.h"
15 #include "chrome/browser/download/download_prefs.h" 15 #include "chrome/browser/download/download_prefs.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "net/base/escape.h" 17 #include "net/base/escape.h"
18 18
19 namespace file_manager { 19 namespace file_manager {
20 namespace util { 20 namespace util {
21 21
22 namespace { 22 namespace {
23 23
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 chromeos::User* const user = 105 chromeos::User* const user =
106 chromeos::UserManager::IsInitialized() ? 106 chromeos::UserManager::IsInitialized() ?
107 chromeos::UserManager::Get()->GetUserByProfile( 107 chromeos::UserManager::Get()->GetUserByProfile(
108 profile->GetOriginalProfile()) : NULL; 108 profile->GetOriginalProfile()) : NULL;
109 const std::string id = user ? "-" + user->username_hash() : ""; 109 const std::string id = user ? "-" + user->username_hash() : "";
110 return net::EscapePath(kDownloadsFolderName + id); 110 return net::EscapePath(kDownloadsFolderName + id);
111 } 111 }
112 112
113 } // namespace util 113 } // namespace util
114 } // namespace file_manager 114 } // namespace file_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698