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

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

Issue 17167006: move sync_promo_ui to non-webui-specific directory (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed include guard on moved file Created 7 years, 6 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
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_trial.h" 5 #include "chrome/browser/ui/webui/sync_promo/sync_promo_trial.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/metrics/metrics_service.h" 8 #include "chrome/browser/metrics/metrics_service.h"
9 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" 9 #include "chrome/browser/ui/sync/sync_promo_ui.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
11 #include "content/public/browser/web_ui.h" 11 #include "content/public/browser/web_ui.h"
12 12
13 namespace { 13 namespace {
14 14
15 enum { 15 enum {
16 UMA_START_PAGE_SHOWN = 0, 16 UMA_START_PAGE_SHOWN = 0,
17 UMA_START_PAGE_SIGNED_IN, 17 UMA_START_PAGE_SIGNED_IN,
18 UMA_NTP_LINK_SHOWN, 18 UMA_NTP_LINK_SHOWN,
19 UMA_NTP_LINK_SIGNED_IN, 19 UMA_NTP_LINK_SIGNED_IN,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // This switch statement needs to be updated when the enum Source changes. 118 // This switch statement needs to be updated when the enum Source changes.
119 COMPILE_ASSERT(SyncPromoUI::SOURCE_UNKNOWN == 8, 119 COMPILE_ASSERT(SyncPromoUI::SOURCE_UNKNOWN == 8,
120 kSourceEnumHasChangedButNotThisSwitchStatement); 120 kSourceEnumHasChangedButNotThisSwitchStatement);
121 NOTREACHED(); 121 NOTREACHED();
122 break; 122 break;
123 } 123 }
124 UMA_HISTOGRAM_ENUMERATION("SyncPromo.ShowAndSignIn", uma, UMA_MAX); 124 UMA_HISTOGRAM_ENUMERATION("SyncPromo.ShowAndSignIn", uma, UMA_MAX);
125 } 125 }
126 126
127 } // namespace sync_promo_trial 127 } // namespace sync_promo_trial
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/sync_promo/sync_promo_trial.h ('k') | chrome/browser/ui/webui/sync_promo/sync_promo_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698