| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/enterprise_oauth_enrollment_scr
een_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_scr
een_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/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
| 10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 base::FundamentalValue retry_value(retry); | 288 base::FundamentalValue retry_value(retry); |
| 289 web_ui_->CallJavascriptFunction("oobe.OAuthEnrollmentScreen.showError", | 289 web_ui_->CallJavascriptFunction("oobe.OAuthEnrollmentScreen.showError", |
| 290 message_value, | 290 message_value, |
| 291 retry_value); | 291 retry_value); |
| 292 } | 292 } |
| 293 | 293 |
| 294 void EnterpriseOAuthEnrollmentScreenHandler::ResetAuth() { | 294 void EnterpriseOAuthEnrollmentScreenHandler::ResetAuth() { |
| 295 oauth_fetcher_.reset(); | 295 oauth_fetcher_.reset(); |
| 296 | 296 |
| 297 // Clear page state. | 297 // Clear page state. |
| 298 int remove_mask = | |
| 299 BrowsingDataRemover::REMOVE_COOKIES | | |
| 300 BrowsingDataRemover::REMOVE_LSO_DATA; | |
| 301 (new BrowsingDataRemover( | 298 (new BrowsingDataRemover( |
| 302 Profile::FromBrowserContext(web_ui_->tab_contents()->browser_context()), | 299 Profile::FromBrowserContext(web_ui_->tab_contents()->browser_context()), |
| 303 BrowsingDataRemover::EVERYTHING, | 300 BrowsingDataRemover::EVERYTHING, |
| 304 base::Time()))->Remove(remove_mask); | 301 base::Time()))->Remove(BrowsingDataRemover::REMOVE_SITE_DATA); |
| 305 } | 302 } |
| 306 | 303 |
| 307 | 304 |
| 308 } // namespace chromeos | 305 } // namespace chromeos |
| OLD | NEW |