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

Side by Side Diff: chrome/browser/ui/app_list/app_list_service_impl.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_APP_LIST_SERVICE_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 // Perform startup checks shared between desktop implementations of the app 81 // Perform startup checks shared between desktop implementations of the app
82 // list. Currently this checks command line flags to enable or disable the app 82 // list. Currently this checks command line flags to enable or disable the app
83 // list, and records UMA stats delayed from a previous Chrome process. 83 // list, and records UMA stats delayed from a previous Chrome process.
84 void PerformStartupChecks(Profile* initial_profile); 84 void PerformStartupChecks(Profile* initial_profile);
85 85
86 private: 86 private:
87 friend class test::AppListServiceImplTestApi; 87 friend class test::AppListServiceImplTestApi;
88 static void SendAppListStats(); 88 static void SendAppListStats();
89 89
90 // Loads a profile asynchronously and calls OnProfileLoaded() when done. 90 std::string GetProfileName();
91 void LoadProfileAsync(const base::FilePath& profile_file_path);
92
93 // Callback for asynchronous profile load.
94 void OnProfileLoaded(int profile_load_sequence_id,
95 Profile* profile,
96 Profile::CreateStatus status);
97 91
98 // ProfileInfoCacheObserver overrides: 92 // ProfileInfoCacheObserver overrides:
99 void OnProfileWillBeRemoved(const base::FilePath& profile_path) override; 93 void OnProfileWillBeRemoved(const base::FilePath& profile_path) override;
100 94
101 scoped_ptr<ProfileStore> profile_store_; 95 scoped_ptr<ProfileStore> profile_store_;
102 base::CommandLine command_line_; 96 base::CommandLine command_line_;
103 PrefService* local_state_; 97 PrefService* local_state_;
104 scoped_ptr<ProfileLoader> profile_loader_; 98 scoped_ptr<ProfileLoader> profile_loader_;
105 scoped_ptr<AppListViewDelegate> view_delegate_; 99 scoped_ptr<AppListViewDelegate> view_delegate_;
106 100
107 base::WeakPtrFactory<AppListServiceImpl> weak_factory_; 101 base::WeakPtrFactory<AppListServiceImpl> weak_factory_;
108 102
109 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl); 103 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl);
110 }; 104 };
111 105
112 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ 106 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698