summaryrefslogtreecommitdiff
path: root/chromium/components/update_client
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-08-30 10:22:43 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-08-30 12:36:28 +0000
commit271a6c3487a14599023a9106329505597638d793 (patch)
treee040d58ffc86c1480b79ca8528020ca9ec919bf8 /chromium/components/update_client
parent7b2ffa587235a47d4094787d72f38102089f402a (diff)
downloadqtwebengine-chromium-271a6c3487a14599023a9106329505597638d793.tar.gz
BASELINE: Update Chromium to 77.0.3865.59
Change-Id: I1e89a5f3b009a9519a6705102ad65c92fe736f21 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/components/update_client')
-rw-r--r--chromium/components/update_client/component_patcher_unittest.cc2
-rw-r--r--chromium/components/update_client/test_configurator.cc4
-rw-r--r--chromium/components/update_client/update_checker_unittest.cc18
-rw-r--r--chromium/components/update_client/update_client.cc4
4 files changed, 14 insertions, 14 deletions
diff --git a/chromium/components/update_client/component_patcher_unittest.cc b/chromium/components/update_client/component_patcher_unittest.cc
index c292b229044..73204621396 100644
--- a/chromium/components/update_client/component_patcher_unittest.cc
+++ b/chromium/components/update_client/component_patcher_unittest.cc
@@ -13,7 +13,7 @@
#include "base/run_loop.h"
#include "base/values.h"
#include "components/services/patch/patch_service.h"
-#include "components/services/patch/public/interfaces/constants.mojom.h"
+#include "components/services/patch/public/mojom/constants.mojom.h"
#include "components/update_client/component_patcher_operation.h"
#include "components/update_client/component_patcher_unittest.h"
#include "components/update_client/patch/patch_impl.h"
diff --git a/chromium/components/update_client/test_configurator.cc b/chromium/components/update_client/test_configurator.cc
index 26ffc8208c9..8b8ffb95c10 100644
--- a/chromium/components/update_client/test_configurator.cc
+++ b/chromium/components/update_client/test_configurator.cc
@@ -9,8 +9,8 @@
#include "base/threading/thread_task_runner_handle.h"
#include "base/version.h"
#include "components/prefs/pref_service.h"
-#include "components/services/patch/public/interfaces/constants.mojom.h"
-#include "components/services/unzip/public/interfaces/constants.mojom.h"
+#include "components/services/patch/public/mojom/constants.mojom.h"
+#include "components/services/unzip/public/mojom/constants.mojom.h"
#include "components/update_client/activity_data_service.h"
#include "components/update_client/net/network_chromium.h"
#include "components/update_client/patch/patch_impl.h"
diff --git a/chromium/components/update_client/update_checker_unittest.cc b/chromium/components/update_client/update_checker_unittest.cc
index ac4fa08a466..b7f2540f551 100644
--- a/chromium/components/update_client/update_checker_unittest.cc
+++ b/chromium/components/update_client/update_checker_unittest.cc
@@ -323,17 +323,17 @@ TEST_P(UpdateCheckerTest, UpdateCheckSuccess) {
.FindKey("fp")
->GetString());
-#if (OS_WIN)
- EXPECT_TRUE(request->FindKey("domainjoined"));
+#if defined(OS_WIN)
+ EXPECT_TRUE(request->FindKey("domainjoined"));
#if defined(GOOGLE_CHROME_BUILD)
- const auto* updater = request->FindKey("updater");
- EXPECT_TRUE(updater);
- EXPECT_EQ("Omaha", updater->FindKey("name")->GetString());
- EXPECT_TRUE(updater->FindKey("autoupdatecheckenabled")->is_bool());
- EXPECT_TRUE(updater->FindKey("ismachine")->is_bool());
- EXPECT_TRUE(updater->FindKey("updatepolicy")->is_int());
+ const auto* updater = request->FindKey("updater");
+ EXPECT_TRUE(updater);
+ EXPECT_EQ("Omaha", updater->FindKey("name")->GetString());
+ EXPECT_TRUE(updater->FindKey("autoupdatecheckenabled")->is_bool());
+ EXPECT_TRUE(updater->FindKey("ismachine")->is_bool());
+ EXPECT_TRUE(updater->FindKey("updatepolicy")->is_int());
#endif // GOOGLE_CHROME_BUILD
-#endif // OS_WINDOWS
+#endif // OS_WIN
// Sanity check the arguments of the callback after parsing.
EXPECT_EQ(ErrorCategory::kNone, error_category_);
diff --git a/chromium/components/update_client/update_client.cc b/chromium/components/update_client/update_client.cc
index 369c6d32c6a..1a12e472757 100644
--- a/chromium/components/update_client/update_client.cc
+++ b/chromium/components/update_client/update_client.cc
@@ -181,14 +181,14 @@ bool UpdateClientImpl::IsUpdating(const std::string& id) const {
for (const auto task : tasks_) {
const auto ids = task->GetIds();
- if (base::ContainsValue(ids, id)) {
+ if (base::Contains(ids, id)) {
return true;
}
}
for (const auto task : task_queue_) {
const auto ids = task->GetIds();
- if (base::ContainsValue(ids, id)) {
+ if (base::Contains(ids, id)) {
return true;
}
}