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

Side by Side Diff: chrome/browser/ui/app_list/test/fake_profile.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "build/build_config.h" 5 #include "build/build_config.h"
6 #include "chrome/browser/ui/app_list/test/fake_profile.h" 6 #include "chrome/browser/ui/app_list/test/fake_profile.h"
7 7
8 FakeProfile::FakeProfile(const std::string& name) 8 FakeProfile::FakeProfile(const std::string& name)
9 : name_(name) { 9 : name_(name) {
10 BrowserContext::Initialize(this, base::FilePath()); 10 BrowserContext::Initialize(this, base::FilePath());
(...skipping 10 matching lines...) Expand all
21 } 21 }
22 22
23 Profile::ProfileType FakeProfile::GetProfileType() const { 23 Profile::ProfileType FakeProfile::GetProfileType() const {
24 return REGULAR_PROFILE; 24 return REGULAR_PROFILE;
25 } 25 }
26 26
27 base::FilePath FakeProfile::GetPath() const { 27 base::FilePath FakeProfile::GetPath() const {
28 return path_; 28 return path_;
29 } 29 }
30 30
31 scoped_ptr<content::ZoomLevelDelegate> FakeProfile::CreateZoomLevelDelegate( 31 std::unique_ptr<content::ZoomLevelDelegate>
32 const base::FilePath& partition_path) { 32 FakeProfile::CreateZoomLevelDelegate(const base::FilePath& partition_path) {
33 return nullptr; 33 return nullptr;
34 } 34 }
35 35
36 bool FakeProfile::IsOffTheRecord() const { 36 bool FakeProfile::IsOffTheRecord() const {
37 return false; 37 return false;
38 } 38 }
39 39
40 content::DownloadManagerDelegate* FakeProfile::GetDownloadManagerDelegate() { 40 content::DownloadManagerDelegate* FakeProfile::GetDownloadManagerDelegate() {
41 return nullptr; 41 return nullptr;
42 } 42 }
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { 206 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) {
207 return false; 207 return false;
208 } 208 }
209 209
210 void FakeProfile::SetExitType(ExitType exit_type) { 210 void FakeProfile::SetExitType(ExitType exit_type) {
211 } 211 }
212 212
213 Profile::ExitType FakeProfile::GetLastSessionExitType() { 213 Profile::ExitType FakeProfile::GetLastSessionExitType() {
214 return EXIT_NORMAL; 214 return EXIT_NORMAL;
215 } 215 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/test/fake_profile.h ('k') | chrome/browser/ui/app_list/test/fast_show_pickler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698