| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/test/testing_device_token_fetcher.h" | 5 #include "chrome/test/testing_device_token_fetcher.h" |
| 6 | 6 |
| 7 #include "chrome/common/notification_service.h" | 7 #include "chrome/common/notification_service.h" |
| 8 #include "chrome/common/notification_source.h" | 8 #include "chrome/common/notification_source.h" |
| 9 #include "chrome/common/notification_type.h" | 9 #include "chrome/common/notification_type.h" |
| 10 #include "chrome/browser/policy/device_token_fetcher.h" | 10 #include "chrome/browser/policy/device_token_fetcher.h" |
| 11 #include "chrome/browser/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 | 12 |
| 13 #if defined(OS_CHROMEOS) | 13 #if defined(OS_CHROMEOS) |
| 14 #include "chrome/browser/chromeos/login/user_manager.h" | 14 #include "chrome/browser/chromeos/login/user_manager.h" |
| 15 #else | 15 #else |
| 16 #include "chrome/browser/sync/signin_manager.h" | 16 #include "chrome/browser/sync/signin_manager.h" |
| 17 #endif | 17 #endif |
| 18 | 18 |
| 19 namespace policy { | 19 namespace policy { |
| 20 | 20 |
| 21 const char* kTestManagedDomainUsername = "___@example.com"; | 21 const char* kTestManagedDomainUsername = "___@example.com"; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 36 Source<Profile>(profile_), | 36 Source<Profile>(profile_), |
| 37 Details<const GoogleServiceSigninSuccessDetails>(&details)); | 37 Details<const GoogleServiceSigninSuccessDetails>(&details)); |
| 38 #endif | 38 #endif |
| 39 } | 39 } |
| 40 | 40 |
| 41 std::string TestingDeviceTokenFetcher::GetCurrentUser() { | 41 std::string TestingDeviceTokenFetcher::GetCurrentUser() { |
| 42 return username_; | 42 return username_; |
| 43 } | 43 } |
| 44 | 44 |
| 45 } // namespace policy | 45 } // namespace policy |
| OLD | NEW |