Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/renderer_host/chrome_navigation_data.h" | |
| 6 | |
| 7 #include "base/memory/ptr_util.h" | |
| 8 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_data .h" | |
| 9 | |
| 10 ChromeNavigationData::ChromeNavigationData() {} | |
| 11 | |
| 12 ChromeNavigationData::~ChromeNavigationData() {} | |
| 13 | |
| 14 std::unique_ptr<content::NavigationData> ChromeNavigationData::Clone() const { | |
| 15 ChromeNavigationData* copy = new ChromeNavigationData(); | |
|
nasko
2016/04/26 20:18:39
Why keep a raw pointer? Just use the unique_ptr.
RyanSturm
2016/04/27 23:27:46
Done.
| |
| 16 if (data_reduction_proxy_data_) | |
| 17 copy->SetDataReductionProxyData(data_reduction_proxy_data_->DeepCopy()); | |
| 18 return base::WrapUnique(copy); | |
|
nasko
2016/04/26 20:18:39
You should WrapUnique the return value of the allo
RyanSturm
2016/04/27 23:27:46
Done.
| |
| 19 } | |
| OLD | NEW |