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

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

Issue 9853010: ProfileManager: Remove CHECKs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review. Created 8 years, 9 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
« 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 #pragma once 9 #pragma once
10 10
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 scoped_ptr<ProfileInfoCache> profile_info_cache_; 311 scoped_ptr<ProfileInfoCache> profile_info_cache_;
312 312
313 #if defined(OS_WIN) 313 #if defined(OS_WIN)
314 // Manages the creation, deletion, and renaming of Windows shortcuts by 314 // Manages the creation, deletion, and renaming of Windows shortcuts by
315 // observing the ProfileInfoCache. 315 // observing the ProfileInfoCache.
316 scoped_ptr<ProfileShortcutManagerWin> profile_shortcut_manager_; 316 scoped_ptr<ProfileShortcutManagerWin> profile_shortcut_manager_;
317 #endif 317 #endif
318 318
319 // For keeping track of the last active profiles. 319 // For keeping track of the last active profiles.
320 std::map<Profile*, int> browser_counts_; 320 std::map<Profile*, int> browser_counts_;
321 // On startup we launch the active profiles in the order they became active
322 // during the last run. This is why they are kept in a list, not in a set.
321 std::vector<Profile*> active_profiles_; 323 std::vector<Profile*> active_profiles_;
322 bool shutdown_started_; 324 bool shutdown_started_;
323 325
324 DISALLOW_COPY_AND_ASSIGN(ProfileManager); 326 DISALLOW_COPY_AND_ASSIGN(ProfileManager);
325 }; 327 };
326 328
327 // Same as the ProfileManager, but doesn't initialize some services of the 329 // Same as the ProfileManager, but doesn't initialize some services of the
328 // profile. This one is useful in unittests. 330 // profile. This one is useful in unittests.
329 class ProfileManagerWithoutInit : public ProfileManager { 331 class ProfileManagerWithoutInit : public ProfileManager {
330 public: 332 public:
331 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); 333 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir);
332 334
333 protected: 335 protected:
334 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} 336 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {}
335 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} 337 virtual void DoFinalInitLogging(Profile*) OVERRIDE {}
336 }; 338 };
337 339
338 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 340 #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