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

Unified Diff: chrome/browser/search/instant_io_context.cc

Issue 13375003: Fixing iframe jank in the local omnibox popup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: virtual Created 7 years, 8 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/resources/omnibox_result_loader.js ('k') | chrome/browser/search/instant_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/instant_io_context.cc
diff --git a/chrome/browser/search/instant_io_context.cc b/chrome/browser/search/instant_io_context.cc
index ba1dc3f62e3b6e269d3051aa6ed776fac5471e24..73f49d2742a7a464e29148c1ef2a7bd0bf8c6edc 100644
--- a/chrome/browser/search/instant_io_context.cc
+++ b/chrome/browser/search/instant_io_context.cc
@@ -56,7 +56,8 @@ void InstantIOContext::SetUserDataOnIO(
// static
void InstantIOContext::AddInstantProcessOnIO(
- scoped_refptr<InstantIOContext> instant_io_context, int process_id) {
+ scoped_refptr<InstantIOContext> instant_io_context,
+ int process_id) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
instant_io_context->process_ids_.insert(process_id);
}
@@ -120,7 +121,7 @@ bool InstantIOContext::GetURLForMostVisitedItemID(
bool InstantIOContext::IsInstantProcess(int process_id) const {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- return process_ids_.count(process_id) != 0;
+ return process_ids_.find(process_id) != process_ids_.end();
}
bool InstantIOContext::GetURLForMostVisitedItemID(
« no previous file with comments | « chrome/browser/resources/omnibox_result_loader.js ('k') | chrome/browser/search/instant_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698