Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6143)

Unified Diff: chromeos/network/managed_network_configuration_handler_unittest.cc

Issue 2352853002: Disallow redundant Bind calls. (Closed)
Patch Set: static_assert message tweak Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/attestation/attestation_flow.cc ('k') | components/dom_distiller/webui/dom_distiller_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/managed_network_configuration_handler_unittest.cc
diff --git a/chromeos/network/managed_network_configuration_handler_unittest.cc b/chromeos/network/managed_network_configuration_handler_unittest.cc
index 7d4590b5545117d831c33c3c2c7a367986a1942a..6a4e333d0e2aa54ae6277fd5fda52d293818ef59 100644
--- a/chromeos/network/managed_network_configuration_handler_unittest.cc
+++ b/chromeos/network/managed_network_configuration_handler_unittest.cc
@@ -138,7 +138,7 @@ class ShillProfileTestClient {
result->SetStringWithoutPathExpansion(shill::kUserHashProperty, userhash);
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(base::Bind(&DereferenceAndCall, callback),
+ FROM_HERE, base::Bind(&DereferenceAndCall, callback,
base::Owned(result.release())));
}
@@ -155,7 +155,7 @@ class ShillProfileTestClient {
entries->GetDictionaryWithoutPathExpansion(entry_path, &entry);
ASSERT_TRUE(entry);
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(base::Bind(&DereferenceAndCall, callback),
+ FROM_HERE, base::Bind(&DereferenceAndCall, callback,
base::Owned(entry->DeepCopy())));
}
« no previous file with comments | « chromeos/attestation/attestation_flow.cc ('k') | components/dom_distiller/webui/dom_distiller_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698