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

Side by Side Diff: chrome/browser/profiles/off_the_record_profile_impl.cc

Issue 9564001: Clean up password manager code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a unit test for sub-frame navigation Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/profiles/off_the_record_profile_impl.h" 5 #include "chrome/browser/profiles/off_the_record_profile_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 std::string OffTheRecordProfileImpl::GetProfileName() { 163 std::string OffTheRecordProfileImpl::GetProfileName() {
164 // Incognito profile should not return the profile name. 164 // Incognito profile should not return the profile name.
165 return std::string(); 165 return std::string();
166 } 166 }
167 167
168 FilePath OffTheRecordProfileImpl::GetPath() { 168 FilePath OffTheRecordProfileImpl::GetPath() {
169 return profile_->GetPath(); 169 return profile_->GetPath();
170 } 170 }
171 171
172 bool OffTheRecordProfileImpl::IsOffTheRecord() { 172 bool OffTheRecordProfileImpl::IsOffTheRecord() const {
173 return true; 173 return true;
174 } 174 }
175 175
176 Profile* OffTheRecordProfileImpl::GetOffTheRecordProfile() { 176 Profile* OffTheRecordProfileImpl::GetOffTheRecordProfile() {
177 return this; 177 return this;
178 } 178 }
179 179
180 void OffTheRecordProfileImpl::DestroyOffTheRecordProfile() { 180 void OffTheRecordProfileImpl::DestroyOffTheRecordProfile() {
181 // Suicide is bad! 181 // Suicide is bad!
182 NOTREACHED(); 182 NOTREACHED();
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 OffTheRecordProfileImpl* profile = NULL; 540 OffTheRecordProfileImpl* profile = NULL;
541 #if defined(OS_CHROMEOS) 541 #if defined(OS_CHROMEOS)
542 if (Profile::IsGuestSession()) 542 if (Profile::IsGuestSession())
543 profile = new GuestSessionProfile(this); 543 profile = new GuestSessionProfile(this);
544 #endif 544 #endif
545 if (!profile) 545 if (!profile)
546 profile = new OffTheRecordProfileImpl(this); 546 profile = new OffTheRecordProfileImpl(this);
547 profile->Init(); 547 profile->Init();
548 return profile; 548 return profile;
549 } 549 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698