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

Side by Side Diff: chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc

Issue 10192005: Refactor LoginUIService to not rely on WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback. Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/sync_promo/sync_promo_handler.h ('k') | chrome/browser/ui/webui/sync_setup_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698