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

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

Issue 2498613003: Add ARC++ kiosk menu items and ability to start kiosk session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_auth_service.h" 5 #include "chrome/browser/chromeos/arc/arc_auth_service.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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 } 487 }
488 488
489 if (result == ProvisioningResult::SUCCESS) { 489 if (result == ProvisioningResult::SUCCESS) {
490 if (support_host_) 490 if (support_host_)
491 support_host_->Close(); 491 support_host_->Close();
492 492
493 if (profile_->GetPrefs()->GetBoolean(prefs::kArcSignedIn)) 493 if (profile_->GetPrefs()->GetBoolean(prefs::kArcSignedIn))
494 return; 494 return;
495 495
496 profile_->GetPrefs()->SetBoolean(prefs::kArcSignedIn, true); 496 profile_->GetPrefs()->SetBoolean(prefs::kArcSignedIn, true);
497 if (!IsOptInVerificationDisabled()) { 497 // Don't show Play Store app for ARC Kiosk because the only one UI in kiosk
498 // mode must be the kiosk app and device is not needed for opt-in.
499 if (!IsOptInVerificationDisabled() && !IsArcKioskMode()) {
498 playstore_launcher_.reset( 500 playstore_launcher_.reset(
499 new ArcAppLauncher(profile_, kPlayStoreAppId, true)); 501 new ArcAppLauncher(profile_, kPlayStoreAppId, true));
500 } 502 }
501 503
502 for (auto& observer : observer_list_) 504 for (auto& observer : observer_list_)
503 observer.OnInitialStart(); 505 observer.OnInitialStart();
504 return; 506 return;
505 } 507 }
506 508
507 ArcSupportHost::Error error; 509 ArcSupportHost::Error error;
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 return os << "ACTIVE"; 1076 return os << "ACTIVE";
1075 } 1077 }
1076 1078
1077 // Some compiler reports an error even if all values of an enum-class are 1079 // Some compiler reports an error even if all values of an enum-class are
1078 // covered indivisually in a switch statement. 1080 // covered indivisually in a switch statement.
1079 NOTREACHED(); 1081 NOTREACHED();
1080 return os; 1082 return os;
1081 } 1083 }
1082 1084
1083 } // namespace arc 1085 } // namespace arc
OLDNEW
« no previous file with comments | « chrome/browser/app_mode/app_mode_utils.cc ('k') | chrome/browser/chromeos/chrome_browser_main_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698