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

Unified Diff: content/browser/battery_status/battery_status_manager_linux.cc

Issue 504273002: Remove implicit conversions from scoped_refptr to T* in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/net/sqlite_persistent_cookie_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/battery_status/battery_status_manager_linux.cc
diff --git a/content/browser/battery_status/battery_status_manager_linux.cc b/content/browser/battery_status/battery_status_manager_linux.cc
index e6abf88ed4eb11b4f53ee7b1e9d771e87caf98d5..6539f05714180257c0670c160057c0d16eda4c5f 100644
--- a/content/browser/battery_status/battery_status_manager_linux.cc
+++ b/content/browser/battery_status/battery_status_manager_linux.cc
@@ -123,7 +123,7 @@ class BatteryStatusNotificationThread : public base::Thread {
void StartListening() {
DCHECK(OnWatcherThread());
- if (system_bus_)
+ if (system_bus_.get())
return;
InitDBus();
@@ -201,7 +201,7 @@ class BatteryStatusNotificationThread : public base::Thread {
void ShutdownDBusConnection() {
DCHECK(OnWatcherThread());
- if (!system_bus_)
+ if (!system_bus_.get())
return;
// Shutdown DBus connection later because there may be pending tasks on
@@ -223,7 +223,7 @@ class BatteryStatusNotificationThread : public base::Thread {
return;
}
- if (!system_bus_)
+ if (!system_bus_.get())
return;
if (success) {
@@ -238,7 +238,7 @@ class BatteryStatusNotificationThread : public base::Thread {
void BatteryChanged(dbus::Signal* signal /* unsused */) {
DCHECK(OnWatcherThread());
- if (!system_bus_)
+ if (!system_bus_.get())
return;
scoped_ptr<base::DictionaryValue> dictionary =
« no previous file with comments | « no previous file | content/browser/net/sqlite_persistent_cookie_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698