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

Side by Side Diff: chrome/browser/ui/passwords/password_bubble_experiment_unittest.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 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 "components/password_manager/core/browser/password_bubble_experiment.h" 5 #include "components/password_manager/core/browser/password_bubble_experiment.h"
6 6
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 #include "chrome/test/base/testing_profile.h" 9 #include "chrome/test/base/testing_profile.h"
10 #include "components/variations/entropy_provider.h" 10 #include "components/variations/entropy_provider.h"
(...skipping 13 matching lines...) Expand all
24 24
25 void TearDown() override { 25 void TearDown() override {
26 variations::testing::ClearAllVariationParams(); 26 variations::testing::ClearAllVariationParams();
27 } 27 }
28 28
29 PrefService* prefs() { return profile_->GetPrefs(); } 29 PrefService* prefs() { return profile_->GetPrefs(); }
30 30
31 private: 31 private:
32 content::TestBrowserThreadBundle thread_bundle_; 32 content::TestBrowserThreadBundle thread_bundle_;
33 base::ScopedTempDir temp_dir_; 33 base::ScopedTempDir temp_dir_;
34 scoped_ptr<TestingProfile> profile_; 34 std::unique_ptr<TestingProfile> profile_;
35 scoped_ptr<base::FieldTrialList> field_trial_list_; 35 std::unique_ptr<base::FieldTrialList> field_trial_list_;
36 }; 36 };
37 37
38 // TODO(vasilii): add tests once there is a smart bubble. 38 // TODO(vasilii): add tests once there is a smart bubble.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698