OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 blob_storage_context_.get(), | 625 blob_storage_context_.get(), |
626 &ChromeBlobStorageContext::InitializeOnIOThread)); | 626 &ChromeBlobStorageContext::InitializeOnIOThread)); |
627 } | 627 } |
628 return blob_storage_context_; | 628 return blob_storage_context_; |
629 } | 629 } |
630 | 630 |
631 virtual ExtensionInfoMap* GetExtensionInfoMap() { | 631 virtual ExtensionInfoMap* GetExtensionInfoMap() { |
632 return profile_->GetExtensionInfoMap(); | 632 return profile_->GetExtensionInfoMap(); |
633 } | 633 } |
634 | 634 |
635 virtual policy::ProfilePolicyContext* GetPolicyContext() { | 635 virtual policy::ProfilePolicyConnector* GetPolicyConnector() { |
636 return NULL; | 636 return NULL; |
637 } | 637 } |
638 | 638 |
639 virtual ChromeURLDataManager* GetChromeURLDataManager() { | 639 virtual ChromeURLDataManager* GetChromeURLDataManager() { |
640 if (!chrome_url_data_manager_.get()) | 640 if (!chrome_url_data_manager_.get()) |
641 chrome_url_data_manager_.reset(new ChromeURLDataManager(this)); | 641 chrome_url_data_manager_.reset(new ChromeURLDataManager(this)); |
642 return chrome_url_data_manager_.get(); | 642 return chrome_url_data_manager_.get(); |
643 } | 643 } |
644 | 644 |
645 virtual PromoCounter* GetInstantPromoCounter() { | 645 virtual PromoCounter* GetInstantPromoCounter() { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 }; | 756 }; |
757 #endif | 757 #endif |
758 | 758 |
759 Profile* Profile::CreateOffTheRecordProfile() { | 759 Profile* Profile::CreateOffTheRecordProfile() { |
760 #if defined(OS_CHROMEOS) | 760 #if defined(OS_CHROMEOS) |
761 if (Profile::IsGuestSession()) | 761 if (Profile::IsGuestSession()) |
762 return new GuestSessionProfile(this); | 762 return new GuestSessionProfile(this); |
763 #endif | 763 #endif |
764 return new OffTheRecordProfileImpl(this); | 764 return new OffTheRecordProfileImpl(this); |
765 } | 765 } |
OLD | NEW |