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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc

Issue 16998003: Update CrOS to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 months 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/ui/webui/chromeos/login/signin_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 network_state_informer_(network_state_informer), 331 network_state_informer_(network_state_informer),
332 weak_factory_(this), 332 weak_factory_(this),
333 webui_visible_(false), 333 webui_visible_(false),
334 preferences_changed_delayed_(false), 334 preferences_changed_delayed_(false),
335 error_screen_actor_(error_screen_actor), 335 error_screen_actor_(error_screen_actor),
336 is_first_update_state_call_(true), 336 is_first_update_state_call_(true),
337 offline_login_active_(false), 337 offline_login_active_(false),
338 last_network_state_(NetworkStateInformer::UNKNOWN), 338 last_network_state_(NetworkStateInformer::UNKNOWN),
339 has_pending_auth_ui_(false), 339 has_pending_auth_ui_(false),
340 ignore_next_user_abort_frame_error_(false) { 340 ignore_next_user_abort_frame_error_(false) {
341 DCHECK(network_state_informer_); 341 DCHECK(network_state_informer_.get());
342 DCHECK(error_screen_actor_); 342 DCHECK(error_screen_actor_);
343 network_state_informer_->AddObserver(this); 343 network_state_informer_->AddObserver(this);
344 CrosSettings::Get()->AddSettingsObserver(kAccountsPrefAllowNewUser, this); 344 CrosSettings::Get()->AddSettingsObserver(kAccountsPrefAllowNewUser, this);
345 CrosSettings::Get()->AddSettingsObserver(kAccountsPrefAllowGuest, this); 345 CrosSettings::Get()->AddSettingsObserver(kAccountsPrefAllowGuest, this);
346 346
347 registrar_.Add(this, 347 registrar_.Add(this,
348 chrome::NOTIFICATION_AUTH_NEEDED, 348 chrome::NOTIFICATION_AUTH_NEEDED,
349 content::NotificationService::AllSources()); 349 content::NotificationService::AllSources());
350 registrar_.Add(this, 350 registrar_.Add(this,
351 chrome::NOTIFICATION_AUTH_SUPPLIED, 351 chrome::NOTIFICATION_AUTH_SUPPLIED,
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1636 if (!cros_settings) 1636 if (!cros_settings)
1637 return false; 1637 return false;
1638 1638
1639 // Offline login is allowed only when user pods are hidden. 1639 // Offline login is allowed only when user pods are hidden.
1640 bool show_pods; 1640 bool show_pods;
1641 cros_settings->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, &show_pods); 1641 cros_settings->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, &show_pods);
1642 return !show_pods; 1642 return !show_pods;
1643 } 1643 }
1644 1644
1645 } // namespace chromeos 1645 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/oobe_ui.cc ('k') | chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698