Index: chrome/browser/ui/views/status_icons/status_tray_state_changer_win.cc |
diff --git a/chrome/browser/ui/views/status_icons/status_tray_state_changer_win.cc b/chrome/browser/ui/views/status_icons/status_tray_state_changer_win.cc |
index 053ac9a0fe4f3756c0c627db32371e765a3e4e51..4596efa36307b09dbc44af1432d58d35a8b9da3c 100644 |
--- a/chrome/browser/ui/views/status_icons/status_tray_state_changer_win.cc |
+++ b/chrome/browser/ui/views/status_icons/status_tray_state_changer_win.cc |
@@ -4,6 +4,8 @@ |
#include "chrome/browser/ui/views/status_icons/status_tray_state_changer_win.h" |
+#include <utility> |
+ |
namespace { |
//////////////////////////////////////////////////////////////////////////////// |
@@ -78,7 +80,7 @@ void StatusTrayStateChangerWin::EnsureTrayIconVisible() { |
notify_item->preference = PREFERENCE_SHOW_ALWAYS; |
- SendNotifyItemUpdate(notify_item.Pass()); |
+ SendNotifyItemUpdate(std::move(notify_item)); |
} |
STDMETHODIMP_(ULONG) StatusTrayStateChangerWin::AddRef() { |
@@ -170,8 +172,8 @@ scoped_ptr<NOTIFYITEM> StatusTrayStateChangerWin::RegisterCallback() { |
// Adding an intermediate scoped pointer here so that |notify_item_| is reset |
// to NULL. |
- scoped_ptr<NOTIFYITEM> rv(notify_item_.release()); |
- return rv.Pass(); |
+ scoped_ptr<NOTIFYITEM> rv(std::move(notify_item_)); |
brettw
2016/03/02 19:09:08
This code is pretty suspicious.
With your change
mmenke
2016/03/02 19:13:25
Interesting...I was told this was fine for scoped_
dcheng
2016/03/02 19:38:31
In general, you're right: you can't depend on the
|
+ return rv; |
} |
bool StatusTrayStateChangerWin::RegisterCallbackWin8() { |