OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/views/profiles/profile_chooser_view.h" | 5 #include "chrome/browser/ui/views/profiles/profile_chooser_view.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/path_service.h" | |
9 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
10 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
11 #include "base/test/histogram_tester.h" | 10 #include "base/test/histogram_tester.h" |
12 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
13 #include "chrome/browser/profiles/profile_manager.h" | 12 #include "chrome/browser/profiles/profile_manager.h" |
14 #include "chrome/browser/profiles/profile_metrics.h" | 13 #include "chrome/browser/profiles/profile_metrics.h" |
15 #include "chrome/browser/profiles/profiles_state.h" | 14 #include "chrome/browser/profiles/profiles_state.h" |
16 #include "chrome/browser/ui/browser_dialogs.h" | 15 #include "chrome/browser/ui/browser_dialogs.h" |
17 #include "chrome/browser/ui/browser_list.h" | 16 #include "chrome/browser/ui/browser_list.h" |
18 #include "chrome/browser/ui/views/frame/browser_view.h" | 17 #include "chrome/browser/ui/views/frame/browser_view.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 return; | 89 return; |
91 | 90 |
92 Profile* profile = browser()->profile(); | 91 Profile* profile = browser()->profile(); |
93 profile->GetPrefs()->SetInteger(prefs::kProfileAvatarTutorialShown, 0); | 92 profile->GetPrefs()->SetInteger(prefs::kProfileAvatarTutorialShown, 0); |
94 | 93 |
95 ASSERT_NO_FATAL_FAILURE(OpenProfileChooserView()); | 94 ASSERT_NO_FATAL_FAILURE(OpenProfileChooserView()); |
96 | 95 |
97 histograms.ExpectUniqueSample("Profile.NewAvatarMenu.Upgrade", | 96 histograms.ExpectUniqueSample("Profile.NewAvatarMenu.Upgrade", |
98 ProfileMetrics::PROFILE_AVATAR_MENU_UPGRADE_VIEW, 1); | 97 ProfileMetrics::PROFILE_AVATAR_MENU_UPGRADE_VIEW, 1); |
99 } | 98 } |
OLD | NEW |