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

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

Issue 9003014: Replace WebUI::tab_contents() with web_contents() and switch all users to use web_contents.h inst... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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/signin_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
(...skipping 11 matching lines...) Expand all
22 #include "chrome/browser/chromeos/input_method/xkeyboard.h" 22 #include "chrome/browser/chromeos/input_method/xkeyboard.h"
23 #include "chrome/browser/chromeos/login/screen_locker.h" 23 #include "chrome/browser/chromeos/login/screen_locker.h"
24 #include "chrome/browser/chromeos/login/user.h" 24 #include "chrome/browser/chromeos/login/user.h"
25 #include "chrome/browser/chromeos/login/webui_login_display.h" 25 #include "chrome/browser/chromeos/login/webui_login_display.h"
26 #include "chrome/browser/io_thread.h" 26 #include "chrome/browser/io_thread.h"
27 #include "chrome/browser/profiles/profile.h" 27 #include "chrome/browser/profiles/profile.h"
28 #include "chrome/common/chrome_notification_types.h" 28 #include "chrome/common/chrome_notification_types.h"
29 #include "chrome/common/chrome_switches.h" 29 #include "chrome/common/chrome_switches.h"
30 #include "chrome/common/net/gaia/gaia_urls.h" 30 #include "chrome/common/net/gaia/gaia_urls.h"
31 #include "chrome/common/url_constants.h" 31 #include "chrome/common/url_constants.h"
32 #include "content/browser/tab_contents/tab_contents.h"
33 #include "content/public/browser/notification_observer.h" 32 #include "content/public/browser/notification_observer.h"
34 #include "content/public/browser/notification_registrar.h" 33 #include "content/public/browser/notification_registrar.h"
35 #include "content/public/browser/notification_service.h" 34 #include "content/public/browser/notification_service.h"
35 #include "content/public/browser/web_contents.h"
36 #include "grit/generated_resources.h" 36 #include "grit/generated_resources.h"
37 #include "ui/base/l10n/l10n_util.h" 37 #include "ui/base/l10n/l10n_util.h"
38 38
39 using content::BrowserThread; 39 using content::BrowserThread;
40 40
41 namespace { 41 namespace {
42 42
43 const char kDefaultDomain[] = "@gmail.com"; 43 const char kDefaultDomain[] = "@gmail.com";
44 44
45 // Account picker screen id. 45 // Account picker screen id.
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 dns_clear_task_running_ = true; 776 dns_clear_task_running_ = true;
777 } 777 }
778 778
779 void SigninScreenHandler::StartClearingCookies() { 779 void SigninScreenHandler::StartClearingCookies() {
780 cookies_cleared_ = false; 780 cookies_cleared_ = false;
781 if (cookie_remover_) 781 if (cookie_remover_)
782 cookie_remover_->RemoveObserver(this); 782 cookie_remover_->RemoveObserver(this);
783 783
784 cookie_remover_ = new BrowsingDataRemover( 784 cookie_remover_ = new BrowsingDataRemover(
785 Profile::FromBrowserContext( 785 Profile::FromBrowserContext(
786 web_ui()->tab_contents()->GetBrowserContext()), 786 web_ui()->web_contents()->GetBrowserContext()),
787 BrowsingDataRemover::EVERYTHING, 787 BrowsingDataRemover::EVERYTHING,
788 base::Time()); 788 base::Time());
789 cookie_remover_->AddObserver(this); 789 cookie_remover_->AddObserver(this);
790 cookie_remover_->Remove(BrowsingDataRemover::REMOVE_SITE_DATA); 790 cookie_remover_->Remove(BrowsingDataRemover::REMOVE_SITE_DATA);
791 } 791 }
792 792
793 } // namespace chromeos 793 } // 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.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698