| OLD | NEW |
| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 } | 719 } |
| 720 } | 720 } |
| 721 | 721 |
| 722 // | 722 // |
| 723 // IncognitoExtensionProcessManager | 723 // IncognitoExtensionProcessManager |
| 724 // | 724 // |
| 725 | 725 |
| 726 IncognitoExtensionProcessManager::IncognitoExtensionProcessManager( | 726 IncognitoExtensionProcessManager::IncognitoExtensionProcessManager( |
| 727 Profile* profile) | 727 Profile* profile) |
| 728 : ExtensionProcessManager(profile), | 728 : ExtensionProcessManager(profile), |
| 729 original_manager_(profile->GetOriginalProfile()-> | 729 original_manager_(extensions::ExtensionSystem::Get( |
| 730 GetExtensionProcessManager()) { | 730 profile->GetOriginalProfile())->process_manager()) { |
| 731 DCHECK(profile->IsOffTheRecord()); | 731 DCHECK(profile->IsOffTheRecord()); |
| 732 | 732 |
| 733 registrar_.Add(this, chrome::NOTIFICATION_BROWSER_WINDOW_READY, | 733 registrar_.Add(this, chrome::NOTIFICATION_BROWSER_WINDOW_READY, |
| 734 content::NotificationService::AllSources()); | 734 content::NotificationService::AllSources()); |
| 735 } | 735 } |
| 736 | 736 |
| 737 const ExtensionProcessManager::ViewSet | 737 const ExtensionProcessManager::ViewSet |
| 738 ExtensionProcessManager::GetAllViews() const { | 738 ExtensionProcessManager::GetAllViews() const { |
| 739 ViewSet result; | 739 ViewSet result; |
| 740 for (ExtensionRenderViews::const_iterator iter = | 740 for (ExtensionRenderViews::const_iterator iter = |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 CreateBackgroundHostsForProfileStartup(GetProfile(), | 815 CreateBackgroundHostsForProfileStartup(GetProfile(), |
| 816 this, service->extensions()); | 816 this, service->extensions()); |
| 817 } | 817 } |
| 818 break; | 818 break; |
| 819 } | 819 } |
| 820 default: | 820 default: |
| 821 ExtensionProcessManager::Observe(type, source, details); | 821 ExtensionProcessManager::Observe(type, source, details); |
| 822 break; | 822 break; |
| 823 } | 823 } |
| 824 } | 824 } |
| OLD | NEW |