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

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc

Issue 23684033: Fix device policy recovery on CrOS login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/options/chromeos/internet_options_handler.h" 5 #include "chrome/browser/ui/webui/options/chromeos/internet_options_handler.h"
6 6
7 #include <ctype.h> 7 #include <ctype.h>
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 } 1339 }
1340 1340
1341 void InternetOptionsHandler::NetworkPropertiesUpdated( 1341 void InternetOptionsHandler::NetworkPropertiesUpdated(
1342 const NetworkState* network) { 1342 const NetworkState* network) {
1343 if (!web_ui()) 1343 if (!web_ui())
1344 return; 1344 return;
1345 RefreshNetworkData(); 1345 RefreshNetworkData();
1346 UpdateConnectionData(network->path()); 1346 UpdateConnectionData(network->path());
1347 } 1347 }
1348 1348
1349 void InternetOptionsHandler::LoggedInStateChanged( 1349 void InternetOptionsHandler::LoggedInStateChanged() {
1350 LoginState::LoggedInState state) {
1351 UpdateLoggedInUserType(); 1350 UpdateLoggedInUserType();
1352 } 1351 }
1353 1352
1354 void InternetOptionsHandler::UpdateLoggedInUserType() { 1353 void InternetOptionsHandler::UpdateLoggedInUserType() {
1355 if (!web_ui()) 1354 if (!web_ui())
1356 return; 1355 return;
1357 base::StringValue login_type( 1356 base::StringValue login_type(
1358 LoggedInUserTypeToString(LoginState::Get()->GetLoggedInUserType())); 1357 LoggedInUserTypeToString(LoginState::Get()->GetLoggedInUserType()));
1359 web_ui()->CallJavascriptFunction( 1358 web_ui()->CallJavascriptFunction(
1360 kUpdateLoggedInUserTypeFunction, login_type); 1359 kUpdateLoggedInUserTypeFunction, login_type);
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 dictionary->SetBoolean( 2075 dictionary->SetBoolean(
2077 kTagWimaxAvailable, 2076 kTagWimaxAvailable,
2078 handler->IsTechnologyAvailable(NetworkTypePattern::Wimax())); 2077 handler->IsTechnologyAvailable(NetworkTypePattern::Wimax()));
2079 dictionary->SetBoolean( 2078 dictionary->SetBoolean(
2080 kTagWimaxEnabled, 2079 kTagWimaxEnabled,
2081 handler->IsTechnologyEnabled(NetworkTypePattern::Wimax())); 2080 handler->IsTechnologyEnabled(NetworkTypePattern::Wimax()));
2082 } 2081 }
2083 2082
2084 } // namespace options 2083 } // namespace options
2085 } // namespace chromeos 2084 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/internet_options_handler.h ('k') | chromeos/cert_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698