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

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

Issue 2905903002: Delete the PreferenceMACs on profile deletion. (Closed)
Patch Set: Fix to get OSX-only ActiveProfileDeletedNextProfileDeletedToo test to pass Created 3 years, 5 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 // last non-supervised profile. In the Mac, loads the next non-supervised 316 // last non-supervised profile. In the Mac, loads the next non-supervised
317 // profile if the profile to be deleted is the active profile. 317 // profile if the profile to be deleted is the active profile.
318 void EnsureActiveProfileExistsBeforeDeletion( 318 void EnsureActiveProfileExistsBeforeDeletion(
319 const CreateCallback& callback, 319 const CreateCallback& callback,
320 const base::FilePath& profile_dir); 320 const base::FilePath& profile_dir);
321 321
322 // Schedules the profile at the given path to be deleted on shutdown, 322 // Schedules the profile at the given path to be deleted on shutdown,
323 // and marks the new profile as active. 323 // and marks the new profile as active.
324 void FinishDeletingProfile(const base::FilePath& profile_dir, 324 void FinishDeletingProfile(const base::FilePath& profile_dir,
325 const base::FilePath& new_active_profile_dir); 325 const base::FilePath& new_active_profile_dir);
326 void OnLoadProfileForProfileDeletion(const base::FilePath& profile_dir,
327 Profile* profile);
326 #endif 328 #endif
327 329
328 // Registers profile with given info. Returns pointer to created ProfileInfo 330 // Registers profile with given info. Returns pointer to created ProfileInfo
329 // entry. 331 // entry.
330 ProfileInfo* RegisterProfile(Profile* profile, bool created); 332 ProfileInfo* RegisterProfile(Profile* profile, bool created);
331 333
332 // Returns ProfileInfo associated with given |path|, registered earlier with 334 // Returns ProfileInfo associated with given |path|, registered earlier with
333 // RegisterProfile. 335 // RegisterProfile.
334 ProfileInfo* GetProfileInfoByPath(const base::FilePath& path) const; 336 ProfileInfo* GetProfileInfoByPath(const base::FilePath& path) const;
335 337
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 class ProfileManagerWithoutInit : public ProfileManager { 452 class ProfileManagerWithoutInit : public ProfileManager {
451 public: 453 public:
452 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); 454 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir);
453 455
454 protected: 456 protected:
455 void DoFinalInitForServices(Profile*, bool) override {} 457 void DoFinalInitForServices(Profile*, bool) override {}
456 void DoFinalInitLogging(Profile*) override {} 458 void DoFinalInitLogging(Profile*) override {}
457 }; 459 };
458 460
459 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 461 #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