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

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

Issue 8769022: Add site_instance_id to ProcessMap::Item. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes Created 9 years 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) 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/extensions/extension_service.h" 5 #include "chrome/browser/extensions/extension_service.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 2355 matching lines...) Expand 10 before | Expand all | Expand 10 after
2366 case content::NOTIFICATION_RENDERER_PROCESS_TERMINATED: { 2366 case content::NOTIFICATION_RENDERER_PROCESS_TERMINATED: {
2367 content::RenderProcessHost* process = 2367 content::RenderProcessHost* process =
2368 content::Source<content::RenderProcessHost>(source).ptr(); 2368 content::Source<content::RenderProcessHost>(source).ptr();
2369 Profile* host_profile = 2369 Profile* host_profile =
2370 Profile::FromBrowserContext(process->GetBrowserContext()); 2370 Profile::FromBrowserContext(process->GetBrowserContext());
2371 if (!profile_->IsSameProfile(host_profile->GetOriginalProfile())) 2371 if (!profile_->IsSameProfile(host_profile->GetOriginalProfile()))
2372 break; 2372 break;
2373 2373
2374 installed_app_hosts_.erase(process->GetID()); 2374 installed_app_hosts_.erase(process->GetID());
2375 2375
2376 process_map_.Remove(process->GetID()); 2376 process_map_.RemoveAllFromProcess(process->GetID());
2377 BrowserThread::PostTask( 2377 BrowserThread::PostTask(
2378 BrowserThread::IO, FROM_HERE, 2378 BrowserThread::IO, FROM_HERE,
2379 base::Bind(&ExtensionInfoMap::UnregisterAllExtensionsInProcess, 2379 base::Bind(&ExtensionInfoMap::UnregisterAllExtensionsInProcess,
2380 profile_->GetExtensionInfoMap(), 2380 profile_->GetExtensionInfoMap(),
2381 process->GetID())); 2381 process->GetID()));
2382 break; 2382 break;
2383 } 2383 }
2384 case chrome::NOTIFICATION_PREF_CHANGED: { 2384 case chrome::NOTIFICATION_PREF_CHANGED: {
2385 std::string* pref_name = content::Details<std::string>(details).ptr(); 2385 std::string* pref_name = content::Details<std::string>(details).ptr();
2386 if (*pref_name == prefs::kExtensionInstallAllowList || 2386 if (*pref_name == prefs::kExtensionInstallAllowList ||
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
2521 2521
2522 ExtensionService::NaClModuleInfoList::iterator 2522 ExtensionService::NaClModuleInfoList::iterator
2523 ExtensionService::FindNaClModule(const GURL& url) { 2523 ExtensionService::FindNaClModule(const GURL& url) {
2524 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); 2524 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin();
2525 iter != nacl_module_list_.end(); ++iter) { 2525 iter != nacl_module_list_.end(); ++iter) {
2526 if (iter->url == url) 2526 if (iter->url == url)
2527 return iter; 2527 return iter;
2528 } 2528 }
2529 return nacl_module_list_.end(); 2529 return nacl_module_list_.end();
2530 } 2530 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_info_map.cc ('k') | chrome/browser/extensions/process_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698