| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/settings/settings_cookies_view_handler.h" | 5 #include "chrome/browser/ui/webui/settings/settings_cookies_view_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 new BrowsingDataAppCacheHelper(profile), | 154 new BrowsingDataAppCacheHelper(profile), |
| 155 new BrowsingDataIndexedDBHelper(indexed_db_context), | 155 new BrowsingDataIndexedDBHelper(indexed_db_context), |
| 156 BrowsingDataFileSystemHelper::Create(file_system_context), | 156 BrowsingDataFileSystemHelper::Create(file_system_context), |
| 157 BrowsingDataQuotaHelper::Create(profile), | 157 BrowsingDataQuotaHelper::Create(profile), |
| 158 BrowsingDataChannelIDHelper::Create(profile->GetRequestContext()), | 158 BrowsingDataChannelIDHelper::Create(profile->GetRequestContext()), |
| 159 new BrowsingDataServiceWorkerHelper(service_worker_context), | 159 new BrowsingDataServiceWorkerHelper(service_worker_context), |
| 160 new BrowsingDataCacheStorageHelper(cache_storage_context), | 160 new BrowsingDataCacheStorageHelper(cache_storage_context), |
| 161 BrowsingDataFlashLSOHelper::Create(profile)); | 161 BrowsingDataFlashLSOHelper::Create(profile)); |
| 162 cookies_tree_model_.reset( | 162 cookies_tree_model_.reset( |
| 163 new CookiesTreeModel(container, | 163 new CookiesTreeModel(container, |
| 164 profile->GetExtensionSpecialStoragePolicy(), | 164 profile->GetExtensionSpecialStoragePolicy())); |
| 165 false)); | |
| 166 cookies_tree_model_->AddCookiesTreeObserver(this); | 165 cookies_tree_model_->AddCookiesTreeObserver(this); |
| 167 } | 166 } |
| 168 } | 167 } |
| 169 | 168 |
| 170 void CookiesViewHandler::UpdateSearchResults(const base::ListValue* args) { | 169 void CookiesViewHandler::UpdateSearchResults(const base::ListValue* args) { |
| 171 base::string16 query; | 170 base::string16 query; |
| 172 if (!args->GetString(0, &query)) | 171 if (!args->GetString(0, &query)) |
| 173 return; | 172 return; |
| 174 | 173 |
| 175 EnsureCookiesTreeModelCreated(); | 174 EnsureCookiesTreeModelCreated(); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 args); | 226 args); |
| 228 } | 227 } |
| 229 | 228 |
| 230 void CookiesViewHandler::ReloadCookies(const base::ListValue* args) { | 229 void CookiesViewHandler::ReloadCookies(const base::ListValue* args) { |
| 231 cookies_tree_model_.reset(); | 230 cookies_tree_model_.reset(); |
| 232 | 231 |
| 233 EnsureCookiesTreeModelCreated(); | 232 EnsureCookiesTreeModelCreated(); |
| 234 } | 233 } |
| 235 | 234 |
| 236 } // namespace settings | 235 } // namespace settings |
| OLD | NEW |