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

Side by Side Diff: third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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 "modules/battery/BatteryDispatcher.h" 5 #include "modules/battery/BatteryDispatcher.h"
6 6
7 #include "platform/mojo/MojoHelper.h" 7 #include "platform/mojo/MojoHelper.h"
8 #include "public/platform/Platform.h" 8 #include "public/platform/Platform.h"
9 #include "public/platform/ServiceRegistry.h" 9 #include "public/platform/ServiceRegistry.h"
10 #include "wtf/Assertions.h" 10 #include "wtf/Assertions.h"
11 #include "wtf/PassOwnPtr.h"
12 11
13 namespace blink { 12 namespace blink {
14 13
15 BatteryDispatcher& BatteryDispatcher::instance() 14 BatteryDispatcher& BatteryDispatcher::instance()
16 { 15 {
17 DEFINE_STATIC_LOCAL(BatteryDispatcher, batteryDispatcher, (new BatteryDispat cher)); 16 DEFINE_STATIC_LOCAL(BatteryDispatcher, batteryDispatcher, (new BatteryDispat cher));
18 return batteryDispatcher; 17 return batteryDispatcher;
19 } 18 }
20 19
21 BatteryDispatcher::BatteryDispatcher() 20 BatteryDispatcher::BatteryDispatcher()
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 queryNextStatus(); 55 queryNextStatus();
57 } 56 }
58 57
59 void BatteryDispatcher::stopListening() 58 void BatteryDispatcher::stopListening()
60 { 59 {
61 m_monitor.reset(); 60 m_monitor.reset();
62 m_hasLatestData = false; 61 m_hasLatestData = false;
63 } 62 }
64 63
65 } // namespace blink 64 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698