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

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

Issue 2905903002: Delete the PreferenceMACs on profile deletion. (Closed)
Patch Set: Update comments Created 3 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 // last non-supervised profile. In the Mac, loads the next non-supervised 315 // last non-supervised profile. In the Mac, loads the next non-supervised
316 // profile if the profile to be deleted is the active profile. 316 // profile if the profile to be deleted is the active profile.
317 void EnsureActiveProfileExistsBeforeDeletion( 317 void EnsureActiveProfileExistsBeforeDeletion(
318 const CreateCallback& callback, 318 const CreateCallback& callback,
319 const base::FilePath& profile_dir); 319 const base::FilePath& profile_dir);
320 320
321 // Schedules the profile at the given path to be deleted on shutdown, 321 // Schedules the profile at the given path to be deleted on shutdown,
322 // and marks the new profile as active. 322 // and marks the new profile as active.
323 void FinishDeletingProfile(const base::FilePath& profile_dir, 323 void FinishDeletingProfile(const base::FilePath& profile_dir,
324 const base::FilePath& new_active_profile_dir); 324 const base::FilePath& new_active_profile_dir);
325 void OnLoadProfileForProfileDeletion(const base::FilePath& profile_dir,
326 Profile* profile);
325 #endif 327 #endif
326 328
327 // Registers profile with given info. Returns pointer to created ProfileInfo 329 // Registers profile with given info. Returns pointer to created ProfileInfo
328 // entry. 330 // entry.
329 ProfileInfo* RegisterProfile(Profile* profile, bool created); 331 ProfileInfo* RegisterProfile(Profile* profile, bool created);
330 332
331 // Returns ProfileInfo associated with given |path|, registered earlier with 333 // Returns ProfileInfo associated with given |path|, registered earlier with
332 // RegisterProfile. 334 // RegisterProfile.
333 ProfileInfo* GetProfileInfoByPath(const base::FilePath& path) const; 335 ProfileInfo* GetProfileInfoByPath(const base::FilePath& path) const;
334 336
(...skipping 115 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698