1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MULTI_PROFILE_FIRST_RUN_NOTIFICATION_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MULTI_PROFILE_FIRST_RUN_NOTIFICATION_H_
8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h"
11 namespace user_prefs
{
12 class PrefRegistrySyncable
;
19 class MultiProfileFirstRunNotification
{
21 MultiProfileFirstRunNotification();
22 ~MultiProfileFirstRunNotification();
24 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable
* registry
);
26 // Invoked when the user profile is prepared. Show the notification for
27 // the primary user when multiprofile is enabled and user has not dismissed
29 void UserProfilePrepared(Profile
* user_profile
);
32 // Invoked when user dismisses the notification.
33 void OnDismissed(Profile
* user_profile
);
35 base::WeakPtrFactory
<MultiProfileFirstRunNotification
> weak_ptr_factory_
;
37 DISALLOW_COPY_AND_ASSIGN(MultiProfileFirstRunNotification
);
40 } // namespace chromeos
42 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MULTI_PROFILE_FIRST_RUN_NOTIFICATION_H_