| OLD | NEW |
| 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 "chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.
h" | 5 #include "chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.
h" |
| 6 | 6 |
| 7 #include "ash/common/shelf/shelf_delegate.h" | 7 #include "ash/shelf/shelf_delegate.h" |
| 8 #include "ash/common/wm_shell.h" | 8 #include "ash/wm_shell.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "chrome/browser/chromeos/arc/arc_auth_notification.h" | 12 #include "chrome/browser/chromeos/arc/arc_auth_notification.h" |
| 13 #include "chrome/browser/chromeos/arc/arc_optin_uma.h" | 13 #include "chrome/browser/chromeos/arc/arc_optin_uma.h" |
| 14 #include "chrome/browser/chromeos/arc/arc_session_manager.h" | 14 #include "chrome/browser/chromeos/arc/arc_session_manager.h" |
| 15 #include "chrome/browser/chromeos/arc/arc_support_host.h" | 15 #include "chrome/browser/chromeos/arc/arc_support_host.h" |
| 16 #include "chrome/browser/chromeos/arc/arc_util.h" | 16 #include "chrome/browser/chromeos/arc/arc_util.h" |
| 17 #include "chrome/browser/prefs/pref_service_syncable_util.h" | 17 #include "chrome/browser/prefs/pref_service_syncable_util.h" |
| 18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // TODO(hidehiko): Extract kEnableArcOOBEOptIn check as a utility method. | 136 // TODO(hidehiko): Extract kEnableArcOOBEOptIn check as a utility method. |
| 137 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( | 137 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 138 chromeos::switches::kEnableArcOOBEOptIn) && | 138 chromeos::switches::kEnableArcOOBEOptIn) && |
| 139 profile_->IsNewProfile() && | 139 profile_->IsNewProfile() && |
| 140 !profile_->GetPrefs()->HasPrefPath(prefs::kArcEnabled)) { | 140 !profile_->GetPrefs()->HasPrefPath(prefs::kArcEnabled)) { |
| 141 ArcAuthNotification::Show(profile_); | 141 ArcAuthNotification::Show(profile_); |
| 142 } | 142 } |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namespace arc | 145 } // namespace arc |
| OLD | NEW |