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

Side by Side Diff: chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 years, 4 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 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" 8 #include "base/path_service.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/common/chrome_paths.h" 21 #include "chrome/common/chrome_paths.h"
22 #include "chrome/common/chrome_switches.h" 22 #include "chrome/common/chrome_switches.h"
23 #include "chrome/common/pref_names.h" 23 #include "chrome/common/pref_names.h"
24 #include "chrome/test/base/in_process_browser_test.h" 24 #include "chrome/test/base/in_process_browser_test.h"
25 #include "chrome/test/base/test_switches.h" 25 #include "chrome/test/base/test_switches.h"
26 #include "chrome/test/base/testing_browser_process.h" 26 #include "chrome/test/base/testing_browser_process.h"
27 #include "chrome/test/base/testing_profile_manager.h" 27 #include "chrome/test/base/testing_profile_manager.h"
28 #include "chrome/test/base/uma_histogram_helper.h" 28 #include "chrome/test/base/uma_histogram_helper.h"
29 #include "components/signin/core/common/profile_management_switches.h" 29 #include "components/signin/core/common/profile_management_switches.h"
30 #include "content/public/test/test_utils.h" 30 #include "content/public/test/test_utils.h"
31 #include "grit/generated_resources.h"
32 #include "ui/views/controls/button/label_button.h" 31 #include "ui/views/controls/button/label_button.h"
33 32
34 class ProfileChooserViewBrowserTest : public InProcessBrowserTest { 33 class ProfileChooserViewBrowserTest : public InProcessBrowserTest {
35 public: 34 public:
36 ProfileChooserViewBrowserTest(); 35 ProfileChooserViewBrowserTest();
37 virtual ~ProfileChooserViewBrowserTest(); 36 virtual ~ProfileChooserViewBrowserTest();
38 37
39 protected: 38 protected:
40 virtual void SetUp() OVERRIDE; 39 virtual void SetUp() OVERRIDE;
41 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 40 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 93
95 Profile* profile = browser()->profile(); 94 Profile* profile = browser()->profile();
96 profile->GetPrefs()->SetInteger(prefs::kProfileAvatarTutorialShown, 0); 95 profile->GetPrefs()->SetInteger(prefs::kProfileAvatarTutorialShown, 0);
97 96
98 ASSERT_NO_FATAL_FAILURE(OpenProfileChooserView()); 97 ASSERT_NO_FATAL_FAILURE(OpenProfileChooserView());
99 98
100 histograms.Fetch(); 99 histograms.Fetch();
101 histograms.ExpectUniqueSample("Profile.UpgradeEnrollment", 100 histograms.ExpectUniqueSample("Profile.UpgradeEnrollment",
102 ProfileMetrics::PROFILE_ENROLLMENT_SHOW_PREVIEW_PROMO, 1); 101 ProfileMetrics::PROFILE_ENROLLMENT_SHOW_PREVIEW_PROMO, 1);
103 } 102 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698