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

Side by Side Diff: chrome/browser/notifications/message_center_settings_controller.cc

Issue 53383002: ChromeOS: Remove ProfileHelper::IsSigninProfile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TestingProfile. Created 7 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/profiles/profile_helper.cc ('k') | chrome/browser/policy/profile_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698