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

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

Issue 2905903002: Delete the PreferenceMACs on profile deletion. (Closed)
Patch Set: Try loading unloaded profiles before calling OnStoreDeletionFromDisk Created 3 years, 6 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 // last non-supervised profile. In the Mac, loads the next non-supervised 310 // last non-supervised profile. In the Mac, loads the next non-supervised
311 // profile if the profile to be deleted is the active profile. 311 // profile if the profile to be deleted is the active profile.
312 void EnsureActiveProfileExistsBeforeDeletion( 312 void EnsureActiveProfileExistsBeforeDeletion(
313 const CreateCallback& callback, 313 const CreateCallback& callback,
314 const base::FilePath& profile_dir); 314 const base::FilePath& profile_dir);
315 315
316 // Schedules the profile at the given path to be deleted on shutdown, 316 // Schedules the profile at the given path to be deleted on shutdown,
317 // and marks the new profile as active. 317 // and marks the new profile as active.
318 void FinishDeletingProfile(const base::FilePath& profile_dir, 318 void FinishDeletingProfile(const base::FilePath& profile_dir,
319 const base::FilePath& new_active_profile_dir); 319 const base::FilePath& new_active_profile_dir);
320 void OnLoadProfileForProfileDeletion(const base::FilePath& profile_dir,
321 Profile* profile);
320 #endif 322 #endif
321 323
322 // Registers profile with given info. Returns pointer to created ProfileInfo 324 // Registers profile with given info. Returns pointer to created ProfileInfo
323 // entry. 325 // entry.
324 ProfileInfo* RegisterProfile(Profile* profile, bool created); 326 ProfileInfo* RegisterProfile(Profile* profile, bool created);
325 327
326 // Returns ProfileInfo associated with given |path|, registered earlier with 328 // Returns ProfileInfo associated with given |path|, registered earlier with
327 // RegisterProfile. 329 // RegisterProfile.
328 ProfileInfo* GetProfileInfoByPath(const base::FilePath& path) const; 330 ProfileInfo* GetProfileInfoByPath(const base::FilePath& path) const;
329 331
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 class ProfileManagerWithoutInit : public ProfileManager { 446 class ProfileManagerWithoutInit : public ProfileManager {
445 public: 447 public:
446 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); 448 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir);
447 449
448 protected: 450 protected:
449 void DoFinalInitForServices(Profile*, bool) override {} 451 void DoFinalInitForServices(Profile*, bool) override {}
450 void DoFinalInitLogging(Profile*) override {} 452 void DoFinalInitLogging(Profile*) override {}
451 }; 453 };
452 454
453 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 455 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_manager.cc » ('j') | components/prefs/persistent_pref_store.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698