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

Side by Side Diff: extensions/browser/api/management/management_api.cc

Issue 2294653002: Some linked_ptr -> unique_ptr conversion in extensions/browser. (Closed)
Patch Set: address comments Created 4 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "extensions/browser/api/management/management_api.h" 5 #include "extensions/browser/api/management/management_api.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/json/json_writer.h" 13 #include "base/json/json_writer.h"
14 #include "base/lazy_instance.h" 14 #include "base/lazy_instance.h"
15 #include "base/location.h" 15 #include "base/location.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/memory/linked_ptr.h"
18 #include "base/memory/ptr_util.h" 17 #include "base/memory/ptr_util.h"
19 #include "base/metrics/histogram.h" 18 #include "base/metrics/histogram.h"
20 #include "base/single_thread_task_runner.h" 19 #include "base/single_thread_task_runner.h"
21 #include "base/strings/string_number_conversions.h" 20 #include "base/strings/string_number_conversions.h"
22 #include "base/strings/string_util.h" 21 #include "base/strings/string_util.h"
23 #include "base/strings/utf_string_conversions.h" 22 #include "base/strings/utf_string_conversions.h"
24 #include "base/threading/thread_task_runner_handle.h" 23 #include "base/threading/thread_task_runner_handle.h"
25 #include "build/build_config.h" 24 #include "build/build_config.h"
26 #include "content/public/browser/browser_context.h" 25 #include "content/public/browser/browser_context.h"
27 #include "extensions/browser/api/extensions_api_client.h" 26 #include "extensions/browser/api/extensions_api_client.h"
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 ManagementAPI::GetFactoryInstance() { 881 ManagementAPI::GetFactoryInstance() {
883 return g_factory.Pointer(); 882 return g_factory.Pointer();
884 } 883 }
885 884
886 void ManagementAPI::OnListenerAdded(const EventListenerInfo& details) { 885 void ManagementAPI::OnListenerAdded(const EventListenerInfo& details) {
887 management_event_router_.reset(new ManagementEventRouter(browser_context_)); 886 management_event_router_.reset(new ManagementEventRouter(browser_context_));
888 EventRouter::Get(browser_context_)->UnregisterObserver(this); 887 EventRouter::Get(browser_context_)->UnregisterObserver(this);
889 } 888 }
890 889
891 } // namespace extensions 890 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/cast_channel/logger.cc ('k') | extensions/browser/api/networking_private/networking_private_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698