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

Side by Side Diff: chrome/browser/cookie_modal_dialog_views.cc

Issue 597061: Make the setItem CONTENT_SETTING_ASK dialog more useful by showing the actual... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/cookie_modal_dialog.h" 5 #include "chrome/browser/cookie_modal_dialog.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/views/cookie_prompt_view.h" 8 #include "chrome/browser/views/cookie_prompt_view.h"
9 #include "chrome/browser/tab_contents/tab_contents.h" 9 #include "chrome/browser/tab_contents/tab_contents.h"
10 #include "views/window/window.h" 10 #include "views/window/window.h"
(...skipping 23 matching lines...) Expand all
34 dialog_->window()->GetClientView()->AsDialogClientView(); 34 dialog_->window()->GetClientView()->AsDialogClientView();
35 client_view->CancelWindow(); 35 client_view->CancelWindow();
36 #endif 36 #endif
37 } 37 }
38 38
39 39
40 NativeDialog CookiePromptModalDialog::CreateNativeDialog() { 40 NativeDialog CookiePromptModalDialog::CreateNativeDialog() {
41 #if defined(OS_WIN) 41 #if defined(OS_WIN)
42 return new CookiePromptView(this, 42 return new CookiePromptView(this,
43 tab_contents_->GetMessageBoxRootWindow(), 43 tab_contents_->GetMessageBoxRootWindow(),
44 tab_contents_->profile(), 44 tab_contents_->profile());
45 storage_info_,
46 host_, cookie_line_, delegate_,
47 cookie_ui_);
48 #else 45 #else
49 return NULL; 46 return NULL;
50 #endif 47 #endif
51 } 48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698