| OLD | NEW |
| 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 <memory> | 5 #include <memory> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "chrome/browser/ui/ash/multi_user/multi_user_util.h" | 24 #include "chrome/browser/ui/ash/multi_user/multi_user_util.h" |
| 25 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
| 26 #include "chrome/test/base/testing_profile.h" | 26 #include "chrome/test/base/testing_profile.h" |
| 27 #include "chromeos/chromeos_switches.h" | 27 #include "chromeos/chromeos_switches.h" |
| 28 #include "chromeos/dbus/dbus_thread_manager.h" | 28 #include "chromeos/dbus/dbus_thread_manager.h" |
| 29 #include "chromeos/login/user_names.h" | 29 #include "chromeos/login/user_names.h" |
| 30 #include "components/arc/arc_bridge_service.h" | 30 #include "components/arc/arc_bridge_service.h" |
| 31 #include "components/arc/test/fake_arc_bridge_service.h" | 31 #include "components/arc/test/fake_arc_bridge_service.h" |
| 32 #include "components/prefs/pref_service.h" | 32 #include "components/prefs/pref_service.h" |
| 33 #include "components/signin/core/account_id/account_id.h" | 33 #include "components/signin/core/account_id/account_id.h" |
| 34 #include "components/sync/api/fake_sync_change_processor.h" | 34 #include "components/sync/model/fake_sync_change_processor.h" |
| 35 #include "components/sync/api/sync_error_factory_mock.h" | 35 #include "components/sync/model/sync_error_factory_mock.h" |
| 36 #include "components/syncable_prefs/testing_pref_service_syncable.h" | 36 #include "components/syncable_prefs/testing_pref_service_syncable.h" |
| 37 #include "components/user_manager/user_manager.h" | 37 #include "components/user_manager/user_manager.h" |
| 38 #include "content/public/browser/browser_thread.h" | 38 #include "content/public/browser/browser_thread.h" |
| 39 #include "content/public/test/test_browser_thread_bundle.h" | 39 #include "content/public/test/test_browser_thread_bundle.h" |
| 40 #include "google_apis/gaia/gaia_constants.h" | 40 #include "google_apis/gaia/gaia_constants.h" |
| 41 #include "google_apis/gaia/gaia_urls.h" | 41 #include "google_apis/gaia/gaia_urls.h" |
| 42 #include "net/http/http_status_code.h" | 42 #include "net/http/http_status_code.h" |
| 43 #include "testing/gtest/include/gtest/gtest.h" | 43 #include "testing/gtest/include/gtest/gtest.h" |
| 44 | 44 |
| 45 namespace arc { | 45 namespace arc { |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 second_profile->GetPrefs()->SetBoolean(prefs::kArcEnabled, true); | 359 second_profile->GetPrefs()->SetBoolean(prefs::kArcEnabled, true); |
| 360 | 360 |
| 361 // Check that non-primary user can't use Arc. | 361 // Check that non-primary user can't use Arc. |
| 362 EXPECT_FALSE(chromeos::ProfileHelper::IsPrimaryProfile(second_profile.get())); | 362 EXPECT_FALSE(chromeos::ProfileHelper::IsPrimaryProfile(second_profile.get())); |
| 363 EXPECT_FALSE(ArcAppListPrefs::Get(second_profile.get())); | 363 EXPECT_FALSE(ArcAppListPrefs::Get(second_profile.get())); |
| 364 | 364 |
| 365 auth_service()->Shutdown(); | 365 auth_service()->Shutdown(); |
| 366 } | 366 } |
| 367 | 367 |
| 368 } // namespace arc | 368 } // namespace arc |
| OLD | NEW |