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

Side by Side Diff: chrome/browser/ui/app_list/profile_store.h

Issue 1113333003: Don't create a new profile when cleaning up stale ephemeral profiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: review Created 5 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
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 #ifndef CHROME_BROWSER_UI_APP_LIST_PROFILE_STORE_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_PROFILE_STORE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_PROFILE_STORE_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_PROFILE_STORE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "chrome/browser/profiles/profile_info_cache_observer.h" 10 #include "chrome/browser/profiles/profile_info_cache_observer.h"
(...skipping 11 matching lines...) Expand all
22 virtual void LoadProfileAsync(const base::FilePath& path, 22 virtual void LoadProfileAsync(const base::FilePath& path,
23 base::Callback<void(Profile*)> callback) = 0; 23 base::Callback<void(Profile*)> callback) = 0;
24 24
25 // Returns the profile at |path| if it is already loaded. 25 // Returns the profile at |path| if it is already loaded.
26 virtual Profile* GetProfileByPath(const base::FilePath& path) = 0; 26 virtual Profile* GetProfileByPath(const base::FilePath& path) = 0;
27 27
28 // The user data directory that profiles are stored under in this instance of 28 // The user data directory that profiles are stored under in this instance of
29 // Chrome. 29 // Chrome.
30 virtual base::FilePath GetUserDataDir() = 0; 30 virtual base::FilePath GetUserDataDir() = 0;
31 31
32 // The name of the last used profile.
33 virtual std::string GetLastUsedProfileName() = 0;
34
32 // Returns true if the profile at |path| is supervised. 35 // Returns true if the profile at |path| is supervised.
33 virtual bool IsProfileSupervised(const base::FilePath& path) = 0; 36 virtual bool IsProfileSupervised(const base::FilePath& path) = 0;
34 37
35 // Returns true if the profile at |path| is locked. 38 // Returns true if the profile at |path| is locked.
36 virtual bool IsProfileLocked(const base::FilePath& path) = 0; 39 virtual bool IsProfileLocked(const base::FilePath& path) = 0;
37 }; 40 };
38 41
39 #endif // CHROME_BROWSER_UI_APP_LIST_PROFILE_STORE_H_ 42 #endif // CHROME_BROWSER_UI_APP_LIST_PROFILE_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698