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

Side by Side Diff: components/update_client/component.cc

Issue 2883383002: Remove dead code from update_client::Component. (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « components/update_client/component.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/update_client/component.h" 5 #include "components/update_client/component.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 608
609 DCHECK_EQ(static_cast<int>(ErrorCategory::kErrorNone), 609 DCHECK_EQ(static_cast<int>(ErrorCategory::kErrorNone),
610 component.error_category_); 610 component.error_category_);
611 DCHECK_EQ(0, component.error_code_); 611 DCHECK_EQ(0, component.error_code_);
612 DCHECK_EQ(0, component.extra_code1_); 612 DCHECK_EQ(0, component.extra_code1_);
613 613
614 TransitionState(base::MakeUnique<StateUpdated>(&component)); 614 TransitionState(base::MakeUnique<StateUpdated>(&component));
615 } 615 }
616 616
617 Component::StateUpdating::StateUpdating(Component* component) 617 Component::StateUpdating::StateUpdating(Component* component)
618 : State(component, ComponentState::kUpdating), 618 : State(component, ComponentState::kUpdating) {}
619 main_task_runner_(base::ThreadTaskRunnerHandle::Get()) {}
620 619
621 Component::StateUpdating::~StateUpdating() { 620 Component::StateUpdating::~StateUpdating() {
622 DCHECK(thread_checker_.CalledOnValidThread()); 621 DCHECK(thread_checker_.CalledOnValidThread());
623 } 622 }
624 623
625 void Component::StateUpdating::DoHandle() { 624 void Component::StateUpdating::DoHandle() {
626 DCHECK(thread_checker_.CalledOnValidThread()); 625 DCHECK(thread_checker_.CalledOnValidThread());
627 626
628 const auto& component = Component::State::component(); 627 const auto& component = Component::State::component();
629 const auto& update_context = component.update_context_; 628 const auto& update_context = component.update_context_;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 Component::StateUninstalled::~StateUninstalled() { 693 Component::StateUninstalled::~StateUninstalled() {
695 DCHECK(thread_checker_.CalledOnValidThread()); 694 DCHECK(thread_checker_.CalledOnValidThread());
696 } 695 }
697 696
698 void Component::StateUninstalled::DoHandle() { 697 void Component::StateUninstalled::DoHandle() {
699 DCHECK(thread_checker_.CalledOnValidThread()); 698 DCHECK(thread_checker_.CalledOnValidThread());
700 TransitionState(nullptr); 699 TransitionState(nullptr);
701 } 700 }
702 701
703 } // namespace update_client 702 } // namespace update_client
OLDNEW
« no previous file with comments | « components/update_client/component.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698