diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-24 12:15:48 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-28 13:30:04 +0000 |
commit | b014812705fc80bff0a5c120dfcef88f349816dc (patch) | |
tree | 25a2e2d9fa285f1add86aa333389a839f81a39ae /chromium/components/safe_browsing/db/v4_get_hash_protocol_manager.cc | |
parent | 9f4560b1027ae06fdb497023cdcaf91b8511fa74 (diff) | |
download | qtwebengine-chromium-b014812705fc80bff0a5c120dfcef88f349816dc.tar.gz |
BASELINE: Update Chromium to 68.0.3440.125
Change-Id: I23f19369e01f688e496f5bf179abb521ad73874f
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/components/safe_browsing/db/v4_get_hash_protocol_manager.cc')
-rw-r--r-- | chromium/components/safe_browsing/db/v4_get_hash_protocol_manager.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chromium/components/safe_browsing/db/v4_get_hash_protocol_manager.cc b/chromium/components/safe_browsing/db/v4_get_hash_protocol_manager.cc index a0e9fb5a58f..e3589ea35ec 100644 --- a/chromium/components/safe_browsing/db/v4_get_hash_protocol_manager.cc +++ b/chromium/components/safe_browsing/db/v4_get_hash_protocol_manager.cc @@ -227,8 +227,7 @@ std::unique_ptr<V4GetHashProtocolManager> V4GetHashProtocolManager::Create( // static void V4GetHashProtocolManager::RegisterFactory( std::unique_ptr<V4GetHashProtocolManagerFactory> factory) { - if (factory_) - delete factory_; + delete factory_; factory_ = factory.release(); } @@ -779,7 +778,7 @@ void V4GetHashProtocolManager::OnURLLoaderComplete( std::string data; if (response_body) - data = *response_body.get(); + data = *response_body; OnURLLoaderCompleteInternal(url_loader, url_loader->NetError(), response_code, data); |