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

Unified Diff: chrome/browser/chromeos/arc/arc_auth_notification.cc

Issue 2160723004: ARC Opt in notification not shown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: chrome/browser/chromeos/arc/arc_auth_notification.cc
diff --git a/chrome/browser/chromeos/arc/arc_auth_notification.cc b/chrome/browser/chromeos/arc/arc_auth_notification.cc
index 1617cf420733209e0413f5f05cca362be152c20e..917ebfdf56c73c47de5984057ab19eba025ee728 100644
--- a/chrome/browser/chromeos/arc/arc_auth_notification.cc
+++ b/chrome/browser/chromeos/arc/arc_auth_notification.cc
@@ -9,8 +9,11 @@
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/chromeos/arc/arc_auth_service.h"
#include "chrome/browser/chromeos/arc/arc_optin_uma.h"
+#include "chrome/browser/profiles/profile.h"
oshima 2016/07/19 15:58:55 I believe you don't need this.
mtomasz 2016/07/20 00:22:55 Done.
+#include "chrome/browser/ui/ash/multi_user/multi_user_util.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/theme_resources.h"
+#include "components/signin/core/account_id/account_id.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/message_center/message_center.h"
@@ -85,9 +88,11 @@ class ArcAuthNotificationDelegate
namespace arc {
// static
-void ArcAuthNotification::Show() {
+void ArcAuthNotification::Show(Profile* profile) {
message_center::NotifierId notifier_id(
message_center::NotifierId::SYSTEM_COMPONENT, kNotifierId);
+ notifier_id.profile_id =
+ multi_user_util::GetAccountIdFromProfile(profile).GetUserEmail();
message_center::RichNotificationData data;
data.buttons.push_back(message_center::ButtonInfo(
« no previous file with comments | « chrome/browser/chromeos/arc/arc_auth_notification.h ('k') | chrome/browser/chromeos/arc/arc_auth_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698