OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_system_impl.h" | 5 #include "chrome/browser/extensions/extension_system_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "apps/app_restore_service.h" | 9 #include "apps/app_restore_service.h" |
10 #include "apps/app_restore_service_factory.h" | 10 #include "apps/app_restore_service_factory.h" |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 | 328 |
329 ContentVerifier* ExtensionSystemImpl::Shared::content_verifier() { | 329 ContentVerifier* ExtensionSystemImpl::Shared::content_verifier() { |
330 return content_verifier_.get(); | 330 return content_verifier_.get(); |
331 } | 331 } |
332 | 332 |
333 void ExtensionSystemImpl::Shared::Observe( | 333 void ExtensionSystemImpl::Shared::Observe( |
334 int type, | 334 int type, |
335 const content::NotificationSource& source, | 335 const content::NotificationSource& source, |
336 const content::NotificationDetails& details) { | 336 const content::NotificationDetails& details) { |
337 DCHECK_EQ(chrome::NOTIFICATION_APP_TERMINATING, type); | 337 DCHECK_EQ(chrome::NOTIFICATION_APP_TERMINATING, type); |
338 CHECK(apps::AppRestoreServiceFactory::GetForProfile(profile_)); | 338 CHECK(apps::AppRestoreServiceFactory::GetForBrowserContext(profile_)); |
339 apps::AppRestoreServiceFactory::GetForProfile(profile_) | 339 apps::AppRestoreServiceFactory::GetForBrowserContext(profile_) |
340 ->OnApplicationTerminating(); | 340 ->OnApplicationTerminating(); |
341 } | 341 } |
342 | 342 |
343 // | 343 // |
344 // ExtensionSystemImpl | 344 // ExtensionSystemImpl |
345 // | 345 // |
346 | 346 |
347 ExtensionSystemImpl::ExtensionSystemImpl(Profile* profile) | 347 ExtensionSystemImpl::ExtensionSystemImpl(Profile* profile) |
348 : profile_(profile) { | 348 : profile_(profile) { |
349 shared_ = ExtensionSystemSharedFactory::GetForBrowserContext(profile); | 349 shared_ = ExtensionSystemSharedFactory::GetForBrowserContext(profile); |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( | 463 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( |
464 const std::string& extension_id, | 464 const std::string& extension_id, |
465 const UnloadedExtensionInfo::Reason reason) { | 465 const UnloadedExtensionInfo::Reason reason) { |
466 BrowserThread::PostTask( | 466 BrowserThread::PostTask( |
467 BrowserThread::IO, | 467 BrowserThread::IO, |
468 FROM_HERE, | 468 FROM_HERE, |
469 base::Bind(&InfoMap::RemoveExtension, info_map(), extension_id, reason)); | 469 base::Bind(&InfoMap::RemoveExtension, info_map(), extension_id, reason)); |
470 } | 470 } |
471 | 471 |
472 } // namespace extensions | 472 } // namespace extensions |
OLD | NEW |