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 "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 | 400 |
401 NotifierStateTracker* notifier_state_tracker = | 401 NotifierStateTracker* notifier_state_tracker = |
402 NotifierStateTrackerFactory::GetForProfile(profile_); | 402 NotifierStateTrackerFactory::GetForProfile(profile_); |
403 notifications_disabled = | 403 notifications_disabled = |
404 !notifier_state_tracker->IsNotifierEnabled(notifier_id); | 404 !notifier_state_tracker->IsNotifierEnabled(notifier_id); |
405 #endif | 405 #endif |
406 | 406 |
407 BrowserThread::PostTaskAndReply( | 407 BrowserThread::PostTaskAndReply( |
408 BrowserThread::IO, FROM_HERE, | 408 BrowserThread::IO, FROM_HERE, |
409 base::Bind(&InfoMap::AddExtension, info_map(), | 409 base::Bind(&InfoMap::AddExtension, info_map(), |
410 make_scoped_refptr(extension), install_time, incognito_enabled, | 410 base::RetainedRef(extension), install_time, incognito_enabled, |
411 notifications_disabled), | 411 notifications_disabled), |
412 callback); | 412 callback); |
413 } | 413 } |
414 | 414 |
415 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( | 415 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( |
416 const std::string& extension_id, | 416 const std::string& extension_id, |
417 const UnloadedExtensionInfo::Reason reason) { | 417 const UnloadedExtensionInfo::Reason reason) { |
418 BrowserThread::PostTask( | 418 BrowserThread::PostTask( |
419 BrowserThread::IO, | 419 BrowserThread::IO, |
420 FROM_HERE, | 420 FROM_HERE, |
421 base::Bind(&InfoMap::RemoveExtension, info_map(), extension_id, reason)); | 421 base::Bind(&InfoMap::RemoveExtension, info_map(), extension_id, reason)); |
422 } | 422 } |
423 | 423 |
424 } // namespace extensions | 424 } // namespace extensions |
OLD | NEW |