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

Side by Side Diff: content/shell/browser/shell_login_dialog.cc

Issue 234533002: Remove a bunch of TOOLKIT_GTK in content/ and gpu/, as well as NPAPI plugins on linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, skip changing browser_main_loop.cc because of presubmit issues, will follow up Created 6 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "content/shell/browser/shell_login_dialog.h" 5 #include "content/shell/browser/shell_login_dialog.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 BrowserThread::PostTask( 52 BrowserThread::PostTask(
53 BrowserThread::UI, FROM_HERE, 53 BrowserThread::UI, FROM_HERE,
54 base::Bind(&ShellLoginDialog::PlatformCleanUp, this)); 54 base::Bind(&ShellLoginDialog::PlatformCleanUp, this));
55 } 55 }
56 56
57 ShellLoginDialog::~ShellLoginDialog() { 57 ShellLoginDialog::~ShellLoginDialog() {
58 // Cannot post any tasks here; this object is going away and cannot be 58 // Cannot post any tasks here; this object is going away and cannot be
59 // referenced/dereferenced. 59 // referenced/dereferenced.
60 } 60 }
61 61
62 #if !defined(OS_MACOSX) && !defined(TOOLKIT_GTK) 62 #if !defined(OS_MACOSX)
63 // Bogus implementations for linking. They are never called because 63 // Bogus implementations for linking. They are never called because
64 // ResourceDispatcherHostDelegate::CreateLoginDelegate returns NULL. 64 // ResourceDispatcherHostDelegate::CreateLoginDelegate returns NULL.
65 // TODO: implement ShellLoginDialog for other platforms, drop this #if 65 // TODO: implement ShellLoginDialog for other platforms, drop this #if
66 void ShellLoginDialog::PlatformCreateDialog(const base::string16& message) {} 66 void ShellLoginDialog::PlatformCreateDialog(const base::string16& message) {}
67 void ShellLoginDialog::PlatformCleanUp() {} 67 void ShellLoginDialog::PlatformCleanUp() {}
68 void ShellLoginDialog::PlatformRequestCancelled() {} 68 void ShellLoginDialog::PlatformRequestCancelled() {}
69 #endif 69 #endif
70 70
71 void ShellLoginDialog::PrepDialog(const base::string16& host, 71 void ShellLoginDialog::PrepDialog(const base::string16& host,
72 const base::string16& realm) { 72 const base::string16& realm) {
(...skipping 25 matching lines...) Expand all
98 else 98 else
99 request_->CancelAuth(); 99 request_->CancelAuth();
100 ResourceDispatcherHost::Get()->ClearLoginDelegateForRequest(request_); 100 ResourceDispatcherHost::Get()->ClearLoginDelegateForRequest(request_);
101 101
102 BrowserThread::PostTask( 102 BrowserThread::PostTask(
103 BrowserThread::UI, FROM_HERE, 103 BrowserThread::UI, FROM_HERE,
104 base::Bind(&ShellLoginDialog::PlatformCleanUp, this)); 104 base::Bind(&ShellLoginDialog::PlatformCleanUp, this));
105 } 105 }
106 106
107 } // namespace content 107 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698