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

Unified Diff: chrome/browser/instant/instant_service.cc

Issue 12256029: Use scoped_ptr to document ownership in InstantUnloadHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More correct ownership semantics Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/instant/instant_service.h ('k') | chrome/browser/instant/instant_service_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/instant_service.cc
diff --git a/chrome/browser/instant/instant_service.cc b/chrome/browser/instant/instant_service.cc
index a3482332656d43a5e72411bbf77e3eec970be907..1f6de61da8150c847bcfc756b650edf630a94983 100644
--- a/chrome/browser/instant/instant_service.cc
+++ b/chrome/browser/instant/instant_service.cc
@@ -22,11 +22,7 @@ void InstantService::AddInstantProcess(int process_id) {
}
bool InstantService::IsInstantProcess(int process_id) const {
- return process_ids_.count(process_id) != 0;
-}
-
-int InstantService::GetInstantProcessCount() const {
- return process_ids_.size();
+ return process_ids_.find(process_id) != process_ids_.end();
}
void InstantService::Shutdown() {
« no previous file with comments | « chrome/browser/instant/instant_service.h ('k') | chrome/browser/instant/instant_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698