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

Unified Diff: chrome/browser/signin/signin_error_notifier_ash.cc

Issue 1997453003: Fix "unused variable" warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move changes in and out to fix compile Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/signin/signin_error_notifier_ash.cc
diff --git a/chrome/browser/signin/signin_error_notifier_ash.cc b/chrome/browser/signin/signin_error_notifier_ash.cc
index 00afe3d989fb898502eea5ba68da4bf3dec88336..85e1b9453fcf3f14a7601a7bfa44653a84599aa2 100644
--- a/chrome/browser/signin/signin_error_notifier_ash.cc
+++ b/chrome/browser/signin/signin_error_notifier_ash.cc
@@ -65,16 +65,20 @@ class SigninNotificationDelegate : public NotificationDelegate {
// Unique id of the notification.
const std::string id_;
+#if !defined(OS_CHROMEOS)
Profile* profile_;
+#endif
DISALLOW_COPY_AND_ASSIGN(SigninNotificationDelegate);
};
-SigninNotificationDelegate::SigninNotificationDelegate(
- const std::string& id,
- Profile* profile)
- : id_(id),
- profile_(profile) {
+SigninNotificationDelegate::SigninNotificationDelegate(const std::string& id,
+ Profile* profile)
+#if defined(OS_CHROMEOS)
+ : id_(id) {
+#else
+ : id_(id), profile_(profile) {
+#endif
}
SigninNotificationDelegate::~SigninNotificationDelegate() {
« no previous file with comments | « chrome/browser/shell_integration.h ('k') | chrome/browser/signin/signin_status_metrics_provider_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698