Chromium Code Reviews| Index: chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc |
| diff --git a/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc b/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc |
| index aaa3df605dcc49e5254961c7a814666121f6c343..a60c59a2a8d2df912ecd00e9bbcbcae6eb4dbf4a 100644 |
| --- a/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc |
| +++ b/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc |
| @@ -129,7 +129,7 @@ class TestNavigationListener |
| auto throttle = base::MakeUnique<Throttle>(); |
| throttle->set_url(url); |
| throttles_.push_back(throttle->AsWeakPtr()); |
| - return throttle; |
| + return std::unique_ptr<content::ResourceThrottle>(throttle.release()); |
|
Lei Zhang
2017/02/25 00:50:34
I think you can do: return std::move(throttle);
Tom (Use chromium acct)
2017/02/25 01:40:21
Done.
|
| } |
| private: |