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

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

Issue 1815363002: Add RetainedRef uses where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 "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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/media_galleries/fileapi/device_media_async_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698