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

Side by Side Diff: chrome/browser/profiles/profile_manager.h

Issue 1869473002: Fixed crash on double profile delete operation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This class keeps track of the currently-active profiles in the runtime. 5 // This class keeps track of the currently-active profiles in the runtime.
6 6
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 // Returns a ProfileAttributesStorage object which can be used to get 183 // Returns a ProfileAttributesStorage object which can be used to get
184 // information about profiles without having to load them from disk. 184 // information about profiles without having to load them from disk.
185 ProfileAttributesStorage& GetProfileAttributesStorage(); 185 ProfileAttributesStorage& GetProfileAttributesStorage();
186 186
187 // Returns a ProfileShortcut Manager that enables the caller to create 187 // Returns a ProfileShortcut Manager that enables the caller to create
188 // profile specfic desktop shortcuts. 188 // profile specfic desktop shortcuts.
189 ProfileShortcutManager* profile_shortcut_manager(); 189 ProfileShortcutManager* profile_shortcut_manager();
190 190
191 #if !defined(OS_ANDROID) 191 #if !defined(OS_ANDROID)
192 // Less strict version of ScheduleProfileForDeletion(), silently fail if
193 // profile already marked for deletion.
194 bool MaybeScheduleProfileForDeletion(const base::FilePath& profile_dir,
195 const CreateCallback& callback);
stevenjb 2016/05/12 15:52:59 blank line
192 // Schedules the profile at the given path to be deleted on shutdown. If we're 196 // Schedules the profile at the given path to be deleted on shutdown. If we're
193 // deleting the last profile, a new one will be created in its place, and in 197 // deleting the last profile, a new one will be created in its place, and in
194 // that case the callback will be called when profile creation is complete. 198 // that case the callback will be called when profile creation is complete.
195 void ScheduleProfileForDeletion(const base::FilePath& profile_dir, 199 void ScheduleProfileForDeletion(const base::FilePath& profile_dir,
196 const CreateCallback& callback); 200 const CreateCallback& callback);
197 #endif 201 #endif
198 202
199 // Autoloads profiles if they are running background apps. 203 // Autoloads profiles if they are running background apps.
200 void AutoloadProfiles(); 204 void AutoloadProfiles();
201 205
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 class ProfileManagerWithoutInit : public ProfileManager { 408 class ProfileManagerWithoutInit : public ProfileManager {
405 public: 409 public:
406 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); 410 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir);
407 411
408 protected: 412 protected:
409 void DoFinalInitForServices(Profile*, bool) override {} 413 void DoFinalInitForServices(Profile*, bool) override {}
410 void DoFinalInitLogging(Profile*) override {} 414 void DoFinalInitLogging(Profile*) override {}
411 }; 415 };
412 416
413 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 417 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_manager.cc » ('j') | chrome/browser/profiles/profile_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698