Skip to content

Commit

Permalink
Make SequentialUpdateChecker constructor private
Browse files Browse the repository at this point in the history
  • Loading branch information
mherrmann committed Dec 28, 2020
1 parent 30f66eb commit 9661d35
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions chromium_src/components/update_client/update_checker.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ namespace update_client {
// separate update requests instead.
class SequentialUpdateChecker : public UpdateChecker {
public:
SequentialUpdateChecker(scoped_refptr<Configurator> config,
PersistedData* metadata);
~SequentialUpdateChecker() override;
static std::unique_ptr<UpdateChecker> Create(
scoped_refptr<Configurator> config,
PersistedData* persistent);

// Overrides for UpdateChecker.
void CheckForUpdates(
const std::string& session_id,
const std::vector<std::string>& ids_checked,
Expand All @@ -50,11 +49,11 @@ class SequentialUpdateChecker : public UpdateChecker {
bool enabled_component_updates,
UpdateCheckCallback update_check_callback) override;

static std::unique_ptr<UpdateChecker> Create(
scoped_refptr<Configurator> config,
PersistedData* persistent);
~SequentialUpdateChecker() override;

private:
SequentialUpdateChecker(scoped_refptr<Configurator> config,
PersistedData* metadata);
void CheckNext();
void UpdateResultAvailable(
const base::Optional<ProtocolParser::Results>& results,
Expand Down

0 comments on commit 9661d35

Please sign in to comment.