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

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

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 years, 1 month 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
« no previous file with comments | « chrome/browser/dom_ui/new_tab_ui.cc ('k') | chrome/browser/extensions/extension_updater.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/extensions/extension_process_manager.h" 5 #include "chrome/browser/extensions/extension_process_manager.h"
6 6
7 #include "chrome/browser/browser.h" 7 #include "chrome/browser/browser.h"
8 #include "chrome/browser/browser_window.h" 8 #include "chrome/browser/browser_window.h"
9 #include "chrome/browser/browsing_instance.h" 9 #include "chrome/browser/browsing_instance.h"
10 #if defined(OS_MACOSX) 10 #if defined(OS_MACOSX)
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 process_ids_.erase(it++); 247 process_ids_.erase(it++);
248 else 248 else
249 ++it; 249 ++it;
250 } 250 }
251 } 251 }
252 252
253 RenderProcessHost* ExtensionProcessManager::GetExtensionProcess( 253 RenderProcessHost* ExtensionProcessManager::GetExtensionProcess(
254 const GURL& url) { 254 const GURL& url) {
255 if (!browsing_instance_->HasSiteInstance(url)) 255 if (!browsing_instance_->HasSiteInstance(url))
256 return NULL; 256 return NULL;
257 scoped_refptr<SiteInstance> site = 257 scoped_refptr<SiteInstance> site(
258 browsing_instance_->GetSiteInstanceForURL(url); 258 browsing_instance_->GetSiteInstanceForURL(url));
259 if (site->HasProcess()) 259 if (site->HasProcess())
260 return site->GetProcess(); 260 return site->GetProcess();
261 return NULL; 261 return NULL;
262 } 262 }
263 263
264 RenderProcessHost* ExtensionProcessManager::GetExtensionProcess( 264 RenderProcessHost* ExtensionProcessManager::GetExtensionProcess(
265 const std::string& extension_id) { 265 const std::string& extension_id) {
266 return GetExtensionProcess( 266 return GetExtensionProcess(
267 Extension::GetBaseURLFromExtensionId(extension_id)); 267 Extension::GetBaseURLFromExtensionId(extension_id));
268 } 268 }
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 if (service && service->is_ready()) 457 if (service && service->is_ready())
458 CreateBackgroundHosts(this, service->extensions()); 458 CreateBackgroundHosts(this, service->extensions());
459 } 459 }
460 break; 460 break;
461 } 461 }
462 default: 462 default:
463 ExtensionProcessManager::Observe(type, source, details); 463 ExtensionProcessManager::Observe(type, source, details);
464 break; 464 break;
465 } 465 }
466 } 466 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/new_tab_ui.cc ('k') | chrome/browser/extensions/extension_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698