OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/profile.h" | 5 #include "chrome/browser/profiles/profile.h" |
6 | 6 |
7 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 } | 207 } |
208 return db_tracker_; | 208 return db_tracker_; |
209 } | 209 } |
210 | 210 |
211 virtual VisitedLinkMaster* GetVisitedLinkMaster() { | 211 virtual VisitedLinkMaster* GetVisitedLinkMaster() { |
212 // We don't provide access to the VisitedLinkMaster when we're OffTheRecord | 212 // We don't provide access to the VisitedLinkMaster when we're OffTheRecord |
213 // because we don't want to leak the sites that the user has visited before. | 213 // because we don't want to leak the sites that the user has visited before. |
214 return NULL; | 214 return NULL; |
215 } | 215 } |
216 | 216 |
217 virtual ExtensionsService* GetExtensionsService() { | 217 virtual ExtensionService* GetExtensionService() { |
218 return GetOriginalProfile()->GetExtensionsService(); | 218 return GetOriginalProfile()->GetExtensionService(); |
219 } | 219 } |
220 | 220 |
221 virtual BackgroundContentsService* GetBackgroundContentsService() const { | 221 virtual BackgroundContentsService* GetBackgroundContentsService() const { |
222 return background_contents_service_.get(); | 222 return background_contents_service_.get(); |
223 } | 223 } |
224 | 224 |
225 virtual StatusTray* GetStatusTray() { | 225 virtual StatusTray* GetStatusTray() { |
226 return GetOriginalProfile()->GetStatusTray(); | 226 return GetOriginalProfile()->GetStatusTray(); |
227 } | 227 } |
228 | 228 |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 | 670 |
671 // The file_system context for this profile. | 671 // The file_system context for this profile. |
672 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_; | 672 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_; |
673 | 673 |
674 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); | 674 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); |
675 }; | 675 }; |
676 | 676 |
677 Profile* Profile::CreateOffTheRecordProfile() { | 677 Profile* Profile::CreateOffTheRecordProfile() { |
678 return new OffTheRecordProfileImpl(this); | 678 return new OffTheRecordProfileImpl(this); |
679 } | 679 } |
OLD | NEW |