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

Side by Side Diff: chrome/browser/extensions/extension_process_manager.cc

Issue 11246003: Remove Profile->GetExtensionProcessManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix extension_crash_recovery_browsertest Created 8 years, 2 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 "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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_infobar_delegate.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698