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

Unified Diff: chrome/browser/chromeos/policy/consumer_management_service.h

Issue 468873002: Show a desktop notification when the enrollment is completed or failed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix broken build and un-inline virtual functions. Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/chromeos/policy/consumer_management_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/consumer_management_service.h
diff --git a/chrome/browser/chromeos/policy/consumer_management_service.h b/chrome/browser/chromeos/policy/consumer_management_service.h
index d1cb6998398c4b90e3bdddd2abae2cc624c0bcc9..92e3418203d77dd432cde449ea220ff5bd9175da 100644
--- a/chrome/browser/chromeos/policy/consumer_management_service.h
+++ b/chrome/browser/chromeos/policy/consumer_management_service.h
@@ -12,6 +12,8 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "base/strings/string16.h"
+#include "chrome/browser/notifications/notification_delegate.h"
#include "chromeos/dbus/dbus_method_call_status.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -19,7 +21,6 @@
class PrefRegistrySimple;
class Profile;
-class ProfileOAuth2TokenService;
namespace chromeos {
class CryptohomeClient;
@@ -155,13 +156,18 @@ class ConsumerManagementService : public content::NotificationObserver,
void EndEnrollment(ConsumerEnrollmentState state);
// Shows a desktop notification and resets the enrollment state.
- void ShowDesktopNotificationAndResetState(ConsumerEnrollmentState state);
+ void ShowDesktopNotificationAndResetState(ConsumerEnrollmentState state,
+ Profile* profile);
- chromeos::CryptohomeClient* client_;
+ // Opens the settings page.
+ void OpenSettingsPage(Profile* profile) const;
+
+ // Opens the enrollment confirmation dialog in the settings page.
+ void TryEnrollmentAgain(Profile* profile) const;
- std::string enrolling_account_id_;
- ProfileOAuth2TokenService* enrolling_token_service_;
+ chromeos::CryptohomeClient* client_;
+ Profile* enrolling_profile_;
scoped_ptr<OAuth2TokenService::Request> token_request_;
content::NotificationRegistrar registrar_;
base::WeakPtrFactory<ConsumerManagementService> weak_ptr_factory_;
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/chromeos/policy/consumer_management_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698