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

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

Issue 1053663003: Cleanup: Remove unused variables in chrome/ found by Scythe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/safe_browsing/browser_features.h » ('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 <list> 10 #include <list>
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // This struct contains information about profiles which are being loaded or 230 // This struct contains information about profiles which are being loaded or
231 // were loaded. 231 // were loaded.
232 struct ProfileInfo { 232 struct ProfileInfo {
233 ProfileInfo(Profile* profile, bool created); 233 ProfileInfo(Profile* profile, bool created);
234 234
235 ~ProfileInfo(); 235 ~ProfileInfo();
236 236
237 scoped_ptr<Profile> profile; 237 scoped_ptr<Profile> profile;
238 // Whether profile has been fully loaded (created and initialized). 238 // Whether profile has been fully loaded (created and initialized).
239 bool created; 239 bool created;
240 // Whether or not this profile should have a shortcut.
241 bool create_shortcut;
242 // List of callbacks to run when profile initialization is done. Note, when 240 // List of callbacks to run when profile initialization is done. Note, when
243 // profile is fully loaded this vector will be empty. 241 // profile is fully loaded this vector will be empty.
244 std::vector<CreateCallback> callbacks; 242 std::vector<CreateCallback> callbacks;
245 243
246 private: 244 private:
247 DISALLOW_COPY_AND_ASSIGN(ProfileInfo); 245 DISALLOW_COPY_AND_ASSIGN(ProfileInfo);
248 }; 246 };
249 247
250 // Returns the profile of the active user and / or the off the record profile 248 // Returns the profile of the active user and / or the off the record profile
251 // if needed. This adds the profile to the ProfileManager if it doesn't 249 // if needed. This adds the profile to the ProfileManager if it doesn't
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 class ProfileManagerWithoutInit : public ProfileManager { 372 class ProfileManagerWithoutInit : public ProfileManager {
375 public: 373 public:
376 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); 374 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir);
377 375
378 protected: 376 protected:
379 void DoFinalInitForServices(Profile*, bool) override {} 377 void DoFinalInitForServices(Profile*, bool) override {}
380 void DoFinalInitLogging(Profile*) override {} 378 void DoFinalInitLogging(Profile*) override {}
381 }; 379 };
382 380
383 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 381 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/safe_browsing/browser_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698