chromium/chromium-62.0.3202.62-rvalue-fix.patch
2017-10-24 16:59:02 -04:00

46 lines
2.4 KiB
Diff

diff -up chromium-62.0.3202.62/chrome/browser/ui/webui/settings/on_startup_handler.cc.another-rvalue-fix chromium-62.0.3202.62/chrome/browser/ui/webui/settings/on_startup_handler.cc
--- chromium-62.0.3202.62/chrome/browser/ui/webui/settings/on_startup_handler.cc.another-rvalue-fix 2017-10-18 10:15:58.855675480 -0400
+++ chromium-62.0.3202.62/chrome/browser/ui/webui/settings/on_startup_handler.cc 2017-10-18 10:16:28.925093301 -0400
@@ -77,7 +77,7 @@ std::unique_ptr<base::Value> OnStartupHa
!extensions::ExtensionSystem::Get(profile_)
->management_policy()
->MustRemainEnabled(ntp_extension, nullptr));
- return dict;
+ return std::move(dict);
}
void OnStartupHandler::HandleGetNtpExtension(const base::ListValue* args) {
diff -up chromium-62.0.3202.62/ui/views/animation/ink_drop_host_view.cc.another-rvalue-fix chromium-62.0.3202.62/ui/views/animation/ink_drop_host_view.cc
--- chromium-62.0.3202.62/ui/views/animation/ink_drop_host_view.cc.another-rvalue-fix 2017-10-18 10:15:16.408497853 -0400
+++ chromium-62.0.3202.62/ui/views/animation/ink_drop_host_view.cc 2017-10-18 10:15:43.793967075 -0400
@@ -305,7 +305,7 @@ std::unique_ptr<InkDropImpl> InkDropHost
base::MakeUnique<InkDropImpl>(this, size());
ink_drop->SetAutoHighlightMode(
views::InkDropImpl::AutoHighlightMode::HIDE_ON_RIPPLE);
- return ink_drop;
+ return std:move(ink_drop);
}
std::unique_ptr<InkDropImpl>
@@ -314,7 +314,7 @@ InkDropHostView::CreateDefaultFloodFillI
InkDropHostView::CreateDefaultInkDropImpl();
ink_drop->SetAutoHighlightMode(
views::InkDropImpl::AutoHighlightMode::SHOW_ON_RIPPLE);
- return ink_drop;
+ return std:move(ink_drop);
}
} // namespace views
diff -up chromium-62.0.3202.62/ui/views/controls/button/checkbox.cc.another-rvalue-fix chromium-62.0.3202.62/ui/views/controls/button/checkbox.cc
--- chromium-62.0.3202.62/ui/views/controls/button/checkbox.cc.another-rvalue-fix 2017-10-18 10:14:18.054627919 -0400
+++ chromium-62.0.3202.62/ui/views/controls/button/checkbox.cc 2017-10-18 10:14:42.265159378 -0400
@@ -198,7 +198,7 @@ std::unique_ptr<InkDrop> Checkbox::Creat
std::unique_ptr<InkDropImpl> ink_drop = CreateDefaultInkDropImpl();
ink_drop->SetShowHighlightOnHover(false);
ink_drop->SetAutoHighlightMode(InkDropImpl::AutoHighlightMode::NONE);
- return ink_drop;
+ return std::move(ink_drop);
}
std::unique_ptr<InkDropRipple> Checkbox::CreateInkDropRipple() const {