| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/notifications/message_center_settings_controller.h" | 5 #include "chrome/browser/notifications/message_center_settings_controller.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/i18n/string_compare.h" | 10 #include "base/i18n/string_compare.h" |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 profile_info_cache_->GetUserNameOfProfileAtIndex(i), | 391 profile_info_cache_->GetUserNameOfProfileAtIndex(i), |
| 392 i, | 392 i, |
| 393 profile_info_cache_->GetPathOfProfileAtIndex(i))); | 393 profile_info_cache_->GetPathOfProfileAtIndex(i))); |
| 394 if (group->profile() == NULL) | 394 if (group->profile() == NULL) |
| 395 continue; | 395 continue; |
| 396 | 396 |
| 397 #if defined(OS_CHROMEOS) | 397 #if defined(OS_CHROMEOS) |
| 398 // In ChromeOS, the login screen first creates a dummy profile which is not | 398 // In ChromeOS, the login screen first creates a dummy profile which is not |
| 399 // actually used, and then the real profile for the user is created when | 399 // actually used, and then the real profile for the user is created when |
| 400 // login (or turns into kiosk mode). This profile should be skipped. | 400 // login (or turns into kiosk mode). This profile should be skipped. |
| 401 if (chromeos::ProfileHelper::IsSigninProfile(group->profile())) | 401 if (group->profile()->IsLoginProfile()) |
| 402 continue; | 402 continue; |
| 403 #endif | 403 #endif |
| 404 notifier_groups_.push_back(group.release()); | 404 notifier_groups_.push_back(group.release()); |
| 405 } | 405 } |
| 406 } | 406 } |
| OLD | NEW |