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

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

Issue 7717023: Rename REMOVE_COOKIES to REMOVE_SITE_DATA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased onto ToT. Created 9 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) 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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_clear_api.cc ('k') | chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698