| 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/profile.h" | 5 #include "chrome/browser/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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 | 417 |
| 418 virtual void ShutdownSessionService() { | 418 virtual void ShutdownSessionService() { |
| 419 // We don't allow a session service, nothing to do. | 419 // We don't allow a session service, nothing to do. |
| 420 } | 420 } |
| 421 | 421 |
| 422 virtual bool HasSessionService() const { | 422 virtual bool HasSessionService() const { |
| 423 // We never have a session service. | 423 // We never have a session service. |
| 424 return false; | 424 return false; |
| 425 } | 425 } |
| 426 | 426 |
| 427 virtual bool HasProfileSyncService() const { |
| 428 // We never have a profile sync service. |
| 429 return false; |
| 430 } |
| 431 |
| 427 virtual bool DidLastSessionExitCleanly() { | 432 virtual bool DidLastSessionExitCleanly() { |
| 428 return profile_->DidLastSessionExitCleanly(); | 433 return profile_->DidLastSessionExitCleanly(); |
| 429 } | 434 } |
| 430 | 435 |
| 431 virtual BookmarkModel* GetBookmarkModel() { | 436 virtual BookmarkModel* GetBookmarkModel() { |
| 432 return profile_->GetBookmarkModel(); | 437 return profile_->GetBookmarkModel(); |
| 433 } | 438 } |
| 434 | 439 |
| 435 virtual DesktopNotificationService* GetDesktopNotificationService() { | 440 virtual DesktopNotificationService* GetDesktopNotificationService() { |
| 436 if (!desktop_notification_service_.get()) { | 441 if (!desktop_notification_service_.get()) { |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 | 633 |
| 629 // The file_system context for this profile. | 634 // The file_system context for this profile. |
| 630 scoped_refptr<FileSystemHostContext> file_system_host_context_; | 635 scoped_refptr<FileSystemHostContext> file_system_host_context_; |
| 631 | 636 |
| 632 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); | 637 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); |
| 633 }; | 638 }; |
| 634 | 639 |
| 635 Profile* Profile::CreateOffTheRecordProfile() { | 640 Profile* Profile::CreateOffTheRecordProfile() { |
| 636 return new OffTheRecordProfileImpl(this); | 641 return new OffTheRecordProfileImpl(this); |
| 637 } | 642 } |
| OLD | NEW |