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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 7024056: Handle extension webrequest API on the IO thread. This speeds up blocking event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix broken test Created 9 years, 6 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
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index aa2a646f0edd83d3516cd9d68771ac25bcd5307b..7186f3907b2a13fe30b4e32c9075755e40327224 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -909,11 +909,19 @@ net::URLRequestContextGetter* ProfileImpl::GetRequestContextForIsolatedApp(
void ProfileImpl::RegisterExtensionWithRequestContexts(
const Extension* extension) {
+ base::Time install_time;
+ if (extension->location() != Extension::COMPONENT) {
Mihai Parparita -not on Chrome 2011/06/08 01:11:59 Is this check really necessary? ExtensionPrefs::Ge
Matt Perry 2011/06/08 20:47:00 GetInstallTime asserts that the ExtensionPref exis
battre 2011/06/08 22:26:05 I have introduced GetInstallTime to get a determin
+ install_time = GetExtensionService()->extension_prefs()->
+ GetInstallTime(extension->id());
+ }
+ bool incognito_enabled =
+ GetExtensionService()->IsIncognitoEnabled(extension->id());
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
NewRunnableMethod(extension_info_map_.get(),
&ExtensionInfoMap::AddExtension,
- make_scoped_refptr(extension)));
+ make_scoped_refptr(extension),
+ install_time, incognito_enabled));
}
void ProfileImpl::UnregisterExtensionWithRequestContexts(

Powered by Google App Engine
This is Rietveld 408576698