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

Side by Side Diff: chrome/browser/chromeos/login/session/user_session_manager.h

Issue 1308833004: Show Goodies page to new Chromebook users (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change delegate from interface to implementation Created 5 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/singleton.h" 13 #include "base/memory/singleton.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "chrome/browser/chromeos/base/locale_util.h" 16 #include "chrome/browser/chromeos/base/locale_util.h"
17 #include "chrome/browser/chromeos/first_run/goodies_displayer.h"
17 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager.h" 18 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager.h"
18 #include "chrome/browser/chromeos/login/signin/token_handle_util.h" 19 #include "chrome/browser/chromeos/login/signin/token_handle_util.h"
19 #include "chromeos/dbus/session_manager_client.h" 20 #include "chromeos/dbus/session_manager_client.h"
20 #include "chromeos/login/auth/authenticator.h" 21 #include "chromeos/login/auth/authenticator.h"
21 #include "chromeos/login/auth/user_context.h" 22 #include "chromeos/login/auth/user_context.h"
22 #include "components/user_manager/user.h" 23 #include "components/user_manager/user.h"
23 #include "components/user_manager/user_manager.h" 24 #include "components/user_manager/user_manager.h"
24 #include "net/base/network_change_notifier.h" 25 #include "net/base/network_change_notifier.h"
25 #include "ui/base/ime/chromeos/input_method_manager.h" 26 #include "ui/base/ime/chromeos/input_method_manager.h"
26 27
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 scoped_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_; 463 scoped_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_;
463 bool running_easy_unlock_key_ops_; 464 bool running_easy_unlock_key_ops_;
464 base::Closure easy_unlock_key_ops_finished_callback_; 465 base::Closure easy_unlock_key_ops_finished_callback_;
465 466
466 // Whether should fetch token handles, tests may override this value. 467 // Whether should fetch token handles, tests may override this value.
467 bool should_obtain_handles_; 468 bool should_obtain_handles_;
468 469
469 scoped_ptr<TokenHandleUtil> token_handle_util_; 470 scoped_ptr<TokenHandleUtil> token_handle_util_;
470 scoped_ptr<TokenHandleFetcher> token_handle_fetcher_; 471 scoped_ptr<TokenHandleFetcher> token_handle_fetcher_;
471 472
473 // Handles lifecycle of Goodies Displayer.
474 scoped_ptr<first_run::GoodiesDisplayer::Delegate> goodies_displayer_delegate_;
475
472 // Whether should launch browser, tests may override this value. 476 // Whether should launch browser, tests may override this value.
473 bool should_launch_browser_; 477 bool should_launch_browser_;
474 478
475 // Child account status is necessary for InitializeStartUrls call. 479 // Child account status is necessary for InitializeStartUrls call.
476 bool waiting_for_child_account_status_; 480 bool waiting_for_child_account_status_;
477 481
478 base::WeakPtrFactory<UserSessionManager> weak_factory_; 482 base::WeakPtrFactory<UserSessionManager> weak_factory_;
479 483
480 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); 484 DISALLOW_COPY_AND_ASSIGN(UserSessionManager);
481 }; 485 };
482 486
483 } // namespace chromeos 487 } // namespace chromeos
484 488
485 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ 489 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698