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

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

Issue 9420036: Also delay regular profile destruction... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Merge Goof fix... Created 8 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 | Annotate | Revision Log
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 #pragma once 9 #pragma once
10 10
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 friend class TestingProfileManager; 217 friend class TestingProfileManager;
218 FRIEND_TEST_ALL_PREFIXES(ProfileManagerBrowserTest, DeleteAllProfiles); 218 FRIEND_TEST_ALL_PREFIXES(ProfileManagerBrowserTest, DeleteAllProfiles);
219 219
220 // This struct contains information about profiles which are being loaded or 220 // This struct contains information about profiles which are being loaded or
221 // were loaded. 221 // were loaded.
222 struct ProfileInfo { 222 struct ProfileInfo {
223 ProfileInfo(Profile* profile, bool created) 223 ProfileInfo(Profile* profile, bool created)
224 : profile(profile), created(created) { 224 : profile(profile), created(created) {
225 } 225 }
226 226
227 ~ProfileInfo() {} 227 ~ProfileInfo();
228 228
229 scoped_ptr<Profile> profile; 229 scoped_ptr<Profile> profile;
230 // Whether profile has been fully loaded (created and initialized). 230 // Whether profile has been fully loaded (created and initialized).
231 bool created; 231 bool created;
232 // List of callbacks to run when profile initialization is done. Note, when 232 // List of callbacks to run when profile initialization is done. Note, when
233 // profile is fully loaded this vector will be empty. 233 // profile is fully loaded this vector will be empty.
234 std::vector<CreateCallback> callbacks; 234 std::vector<CreateCallback> callbacks;
235 235
236 private: 236 private:
237 DISALLOW_COPY_AND_ASSIGN(ProfileInfo); 237 DISALLOW_COPY_AND_ASSIGN(ProfileInfo);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 class ProfileManagerWithoutInit : public ProfileManager { 346 class ProfileManagerWithoutInit : public ProfileManager {
347 public: 347 public:
348 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); 348 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir);
349 349
350 protected: 350 protected:
351 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} 351 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {}
352 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} 352 virtual void DoFinalInitLogging(Profile*) OVERRIDE {}
353 }; 353 };
354 354
355 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 355 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_destroyer_unittest.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698