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

Side by Side Diff: chrome/browser/extensions/extension_system_impl.cc

Issue 2825963003: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/extensions (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
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 "base/base_switches.h" 9 #include "base/base_switches.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 message_center::NotifierId::APPLICATION, 446 message_center::NotifierId::APPLICATION,
447 extension->id()); 447 extension->id());
448 448
449 NotifierStateTracker* notifier_state_tracker = 449 NotifierStateTracker* notifier_state_tracker =
450 NotifierStateTrackerFactory::GetForProfile(profile_); 450 NotifierStateTrackerFactory::GetForProfile(profile_);
451 notifications_disabled = 451 notifications_disabled =
452 !notifier_state_tracker->IsNotifierEnabled(notifier_id); 452 !notifier_state_tracker->IsNotifierEnabled(notifier_id);
453 453
454 BrowserThread::PostTaskAndReply( 454 BrowserThread::PostTaskAndReply(
455 BrowserThread::IO, FROM_HERE, 455 BrowserThread::IO, FROM_HERE,
456 base::Bind(&InfoMap::AddExtension, info_map(), 456 base::BindOnce(&InfoMap::AddExtension, info_map(),
457 base::RetainedRef(extension), install_time, incognito_enabled, 457 base::RetainedRef(extension), install_time,
458 notifications_disabled), 458 incognito_enabled, notifications_disabled),
459 callback); 459 callback);
460 } 460 }
461 461
462 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( 462 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts(
463 const std::string& extension_id, 463 const std::string& extension_id,
464 const UnloadedExtensionInfo::Reason reason) { 464 const UnloadedExtensionInfo::Reason reason) {
465 BrowserThread::PostTask( 465 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
466 BrowserThread::IO, 466 base::BindOnce(&InfoMap::RemoveExtension, info_map(),
467 FROM_HERE, 467 extension_id, reason));
468 base::Bind(&InfoMap::RemoveExtension, info_map(), extension_id, reason));
469 } 468 }
470 469
471 } // namespace extensions 470 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_storage_monitor.cc ('k') | chrome/browser/extensions/extension_web_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698