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

Unified Diff: chrome/browser/ui/sync/one_click_signin_helper.cc

Issue 18603006: Bookmark sync promo for Views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test for CrOS Created 7 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/ui/sync/one_click_signin_helper.cc
diff --git a/chrome/browser/ui/sync/one_click_signin_helper.cc b/chrome/browser/ui/sync/one_click_signin_helper.cc
index 484e1df385f17e9474ccafc0aa2d4721bb287c97..67b65cd99585b3fd96b9de9237708b82e04643a6 100644
--- a/chrome/browser/ui/sync/one_click_signin_helper.cc
+++ b/chrome/browser/ui/sync/one_click_signin_helper.cc
@@ -182,8 +182,15 @@ void LogHistogramValue(SyncPromoUI::Source source, int action) {
UMA_HISTOGRAM_ENUMERATION("Signin.AppsPageLinkActions", action,
one_click_signin::HISTOGRAM_MAX);
break;
+ case SyncPromoUI::SOURCE_BOOKMARK_BUBBLE:
+ UMA_HISTOGRAM_ENUMERATION("Signin.BookmarkBubbleActions", action,
+ one_click_signin::HISTOGRAM_MAX);
+ break;
default:
- NOTREACHED() << "Invalid Source";
+ // This switch statement needs to be updated when the enum Source changes.
+ COMPILE_ASSERT(SyncPromoUI::SOURCE_UNKNOWN == 9,
+ kSourceEnumHasChangedButNotThisSwitchStatement);
+ NOTREACHED();
return;
}
UMA_HISTOGRAM_ENUMERATION("Signin.AllAccessPointActions", action,
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate_unittest.cc ('k') | chrome/browser/ui/sync/sync_promo_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698