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

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

Issue 10388239: Make NetworkProfileBubble not use BrowserList::GetLastActive() as much. Instead pass it a profile a… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 scoped_ptr<ProfileShortcutManagerWin> profile_shortcut_manager_; 312 scoped_ptr<ProfileShortcutManagerWin> profile_shortcut_manager_;
313 #endif 313 #endif
314 314
315 #if !defined(OS_ANDROID) 315 #if !defined(OS_ANDROID)
316 class BrowserListObserver : public BrowserList::Observer { 316 class BrowserListObserver : public BrowserList::Observer {
317 public: 317 public:
318 explicit BrowserListObserver(ProfileManager* manager); 318 explicit BrowserListObserver(ProfileManager* manager);
319 virtual ~BrowserListObserver(); 319 virtual ~BrowserListObserver();
320 320
321 // BrowserList::Observer implementation. 321 // BrowserList::Observer implementation.
322 virtual void OnBrowserAdded(const Browser* browser) OVERRIDE; 322 virtual void OnBrowserAdded(Browser* browser) OVERRIDE;
323 virtual void OnBrowserRemoved(const Browser* browser) OVERRIDE; 323 virtual void OnBrowserRemoved(Browser* browser) OVERRIDE;
324 virtual void OnBrowserSetLastActive(const Browser* browser) OVERRIDE; 324 virtual void OnBrowserSetLastActive(Browser* browser) OVERRIDE;
325 325
326 private: 326 private:
327 ProfileManager* profile_manager_; 327 ProfileManager* profile_manager_;
328 DISALLOW_COPY_AND_ASSIGN(BrowserListObserver); 328 DISALLOW_COPY_AND_ASSIGN(BrowserListObserver);
329 }; 329 };
330 330
331 BrowserListObserver browser_list_observer_; 331 BrowserListObserver browser_list_observer_;
332 #endif // !defined(OS_ANDROID) 332 #endif // !defined(OS_ANDROID)
333 333
334 // For keeping track of the last active profiles. 334 // For keeping track of the last active profiles.
(...skipping 11 matching lines...) Expand all
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

Powered by Google App Engine
This is Rietveld 408576698