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

Side by Side Diff: components/profile_service/user_id_map.h

Issue 1737933002: mojo leveldb: Get profile and leveldb connected to DOMStorageContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove stray mark. Created 4 years, 9 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_PROFILE_SERVICE_USER_ID_MAP_H_
6 #define COMPONENTS_PROFILE_SERVICE_USER_ID_MAP_H_
7
8 #include <string>
9 #include "base/files/file_path.h"
10
11 namespace profile {
12
13 // Currently, ProfileApp is run from within the chrome process. This means it
michaeln 2016/03/17 22:35:41 "means it that" nixit
14 // that the ApplicationLoader is registered during MojoShellContext startup,
15 // even though the application itself is not started. As soon as a
16 // BrowserContext is created, the BrowserContext will choose a |user_id| for
17 // itself and call us to register the mapping from |user_id| to
18 // |profile_data_dir|.
19 //
20 // This data is then accessed when we get our Initialize() call.
21 //
22 // TODO(erg): This is a temporary hack until we redo how we initialize mojo
23 // applications inside of chrome in general; this system won't work once
24 // ProfileApp gets put in its own sandboxed process.
25 void AssociateMojoUserIDWithProfileDir(const std::string& user_id,
26 const base::FilePath& profile_data_dir);
27
28 base::FilePath GetProfileDirForUserID(const std::string& user_id);
29
30 } // namespace profile
31
32 #endif // COMPONENTS_PROFILE_SERVICE_USER_ID_MAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698