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( |