OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/webui/sync_promo/sync_promo_handler.h" | 5 #include "chrome/browser/ui/webui/sync_promo/sync_promo_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 int adjusted = GetViewCount() + amount; | 268 int adjusted = GetViewCount() + amount; |
269 prefs_->SetInteger(prefs::kSyncPromoViewCount, adjusted); | 269 prefs_->SetInteger(prefs::kSyncPromoViewCount, adjusted); |
270 return adjusted; | 270 return adjusted; |
271 } | 271 } |
272 | 272 |
273 void SyncPromoHandler::RecordUserFlowAction(int action) { | 273 void SyncPromoHandler::RecordUserFlowAction(int action) { |
274 // Send an enumeration to our single user flow histogram. | 274 // Send an enumeration to our single user flow histogram. |
275 UMA_HISTOGRAM_ENUMERATION("SyncPromo.UserFlow", action, | 275 UMA_HISTOGRAM_ENUMERATION("SyncPromo.UserFlow", action, |
276 SYNC_PROMO_BUCKET_BOUNDARY); | 276 SYNC_PROMO_BUCKET_BOUNDARY); |
277 } | 277 } |
| 278 |
| 279 void SyncPromoHandler::CloseUI() { |
| 280 // Callers should not ever try to close the promo UI (should only call |
| 281 // CloseUI() if the user is already logged in). |
| 282 NOTREACHED() << "Cannot close the promo UI"; |
| 283 } |
OLD | NEW |