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

Side by Side Diff: chrome/browser/ui/app_list/test/fake_profile.cc

Issue 1741953002: mojo: Sketch a profile application. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't add a boolean to BrowserContext; allocate an object instead. Created 4 years, 9 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
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 } 11 }
11 12
12 FakeProfile::FakeProfile(const std::string& name, const base::FilePath& path) 13 FakeProfile::FakeProfile(const std::string& name, const base::FilePath& path)
13 : name_(name), 14 : name_(name),
14 path_(path) { 15 path_(path) {
16 BrowserContext::Initialize(this, path_);
15 } 17 }
16 18
17 std::string FakeProfile::GetProfileUserName() const { 19 std::string FakeProfile::GetProfileUserName() const {
18 return name_; 20 return name_;
19 } 21 }
20 22
21 Profile::ProfileType FakeProfile::GetProfileType() const { 23 Profile::ProfileType FakeProfile::GetProfileType() const {
22 return REGULAR_PROFILE; 24 return REGULAR_PROFILE;
23 } 25 }
24 26
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { 211 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) {
210 return false; 212 return false;
211 } 213 }
212 214
213 void FakeProfile::SetExitType(ExitType exit_type) { 215 void FakeProfile::SetExitType(ExitType exit_type) {
214 } 216 }
215 217
216 Profile::ExitType FakeProfile::GetLastSessionExitType() { 218 Profile::ExitType FakeProfile::GetLastSessionExitType() {
217 return EXIT_NORMAL; 219 return EXIT_NORMAL;
218 } 220 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698