| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |