| 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/in_process_webkit/dom_storage_area.h" | 5 #include "chrome/browser/in_process_webkit/dom_storage_area.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/task.h" | 9 #include "base/task.h" |
| 10 #include "chrome/browser/chrome_thread.h" | 10 #include "chrome/browser/chrome_thread.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 host_content_settings_map_); | 106 host_content_settings_map_); |
| 107 ChromeThread::PostTask( | 107 ChromeThread::PostTask( |
| 108 ChromeThread::UI, FROM_HERE, | 108 ChromeThread::UI, FROM_HERE, |
| 109 NewRunnableFunction(&DOMStoragePermissionRequest::PromptUser, | 109 NewRunnableFunction(&DOMStoragePermissionRequest::PromptUser, |
| 110 &request)); | 110 &request)); |
| 111 // Tell the renderer that it needs to run a nested message loop. | 111 // Tell the renderer that it needs to run a nested message loop. |
| 112 sender->Send(new ViewMsg_SignalCookiePromptEvent()); | 112 sender->Send(new ViewMsg_SignalCookiePromptEvent()); |
| 113 content_setting = request.WaitOnResponse(); | 113 content_setting = request.WaitOnResponse(); |
| 114 } | 114 } |
| 115 | 115 |
| 116 if (content_setting == CONTENT_SETTING_ALLOW) | 116 return (content_setting != CONTENT_SETTING_BLOCK); |
| 117 return true; | |
| 118 DCHECK(content_setting == CONTENT_SETTING_BLOCK); | |
| 119 return false; | |
| 120 } | 117 } |
| OLD | NEW |