Commit 76366470 authored by Wang Hui's avatar Wang Hui Committed by Commit Bot

Using std::move in chrome/browser/net.

Replace bellow codes with std::move in chrome/browser/net
      const base::Closure callback = callback_;
      callback_.Reset();
      callback.Run();

BUG=807724

Change-Id: I008cf9af9785272ddceb18fff4feba13e62fdac8
Reviewed-on: https://chromium-review.googlesource.com/1134715
Commit-Queue: Matt Menke <mmenke@chromium.org>
Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576099}
parent 4451cbee
...@@ -137,9 +137,7 @@ void DnsProbeRunner::CallCallback() { ...@@ -137,9 +137,7 @@ void DnsProbeRunner::CallCallback() {
DCHECK(!transaction_.get()); DCHECK(!transaction_.get());
// Clear callback in case it starts a new probe immediately. // Clear callback in case it starts a new probe immediately.
const base::Closure callback = callback_; std::move(callback_).Run();
callback_.Reset();
callback.Run();
} }
} // namespace chrome_browser_net } // namespace chrome_browser_net
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment