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

Side by Side Diff: chrome/browser/chromeos/arc/arc_session_manager.cc

Issue 2700783002: s/\bArc\b/ARC/g for ARC related code. (Closed)
Patch Set: Address ARC++ Created 3 years, 10 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "chrome/browser/chromeos/arc/arc_session_manager.h" 5 #include "chrome/browser/chromeos/arc/arc_session_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/common/shelf/shelf_delegate.h" 9 #include "ash/common/shelf/shelf_delegate.h"
10 #include "ash/common/wm_shell.h" 10 #include "ash/common/wm_shell.h"
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 void ArcSessionManager::StopAndEnableArc() { 592 void ArcSessionManager::StopAndEnableArc() {
593 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 593 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
594 DCHECK(!arc_session_runner_->IsStopped()); 594 DCHECK(!arc_session_runner_->IsStopped());
595 reenable_arc_ = true; 595 reenable_arc_ = true;
596 StopArc(); 596 StopArc();
597 } 597 }
598 598
599 void ArcSessionManager::StartArc() { 599 void ArcSessionManager::StartArc() {
600 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 600 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
601 601
602 // Arc must be started only if no pending data removal request exists. 602 // ARC must be started only if no pending data removal request exists.
603 DCHECK(!profile_->GetPrefs()->GetBoolean(prefs::kArcDataRemoveRequested)); 603 DCHECK(!profile_->GetPrefs()->GetBoolean(prefs::kArcDataRemoveRequested));
604 604
605 arc_start_time_ = base::Time::Now(); 605 arc_start_time_ = base::Time::Now();
606 606
607 provisioning_reported_ = false; 607 provisioning_reported_ = false;
608 608
609 arc_session_runner_->RequestStart(); 609 arc_session_runner_->RequestStart();
610 SetState(State::ACTIVE); 610 SetState(State::ACTIVE);
611 } 611 }
612 612
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 990
991 #undef MAP_STATE 991 #undef MAP_STATE
992 992
993 // Some compilers report an error even if all values of an enum-class are 993 // Some compilers report an error even if all values of an enum-class are
994 // covered exhaustively in a switch statement. 994 // covered exhaustively in a switch statement.
995 NOTREACHED() << "Invalid value " << static_cast<int>(state); 995 NOTREACHED() << "Invalid value " << static_cast<int>(state);
996 return os; 996 return os;
997 } 997 }
998 998
999 } // namespace arc 999 } // namespace arc
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_session_manager.h ('k') | chrome/browser/chromeos/arc/arc_session_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698