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

Side by Side Diff: chrome/browser/ui/webui/options/cookies_view_handler.cc

Issue 508223002: Remove Profile dependency from browsing_data_channel_id_helper.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_channel_id_helper_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/options/cookies_view_handler.h" 5 #include "chrome/browser/ui/webui/options/cookies_view_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 storage_partition->GetFileSystemContext(); 196 storage_partition->GetFileSystemContext();
197 LocalDataContainer* container = new LocalDataContainer( 197 LocalDataContainer* container = new LocalDataContainer(
198 new BrowsingDataCookieHelper(profile->GetRequestContext()), 198 new BrowsingDataCookieHelper(profile->GetRequestContext()),
199 new BrowsingDataDatabaseHelper(profile), 199 new BrowsingDataDatabaseHelper(profile),
200 new BrowsingDataLocalStorageHelper(profile), 200 new BrowsingDataLocalStorageHelper(profile),
201 NULL, 201 NULL,
202 new BrowsingDataAppCacheHelper(profile), 202 new BrowsingDataAppCacheHelper(profile),
203 new BrowsingDataIndexedDBHelper(indexed_db_context), 203 new BrowsingDataIndexedDBHelper(indexed_db_context),
204 BrowsingDataFileSystemHelper::Create(file_system_context), 204 BrowsingDataFileSystemHelper::Create(file_system_context),
205 BrowsingDataQuotaHelper::Create(profile), 205 BrowsingDataQuotaHelper::Create(profile),
206 BrowsingDataChannelIDHelper::Create(profile), 206 BrowsingDataChannelIDHelper::Create(profile->GetRequestContext()),
207 new BrowsingDataServiceWorkerHelper(service_worker_context), 207 new BrowsingDataServiceWorkerHelper(service_worker_context),
208 BrowsingDataFlashLSOHelper::Create(profile)); 208 BrowsingDataFlashLSOHelper::Create(profile));
209 cookies_tree_model_.reset( 209 cookies_tree_model_.reset(
210 new CookiesTreeModel(container, 210 new CookiesTreeModel(container,
211 profile->GetExtensionSpecialStoragePolicy(), 211 profile->GetExtensionSpecialStoragePolicy(),
212 false)); 212 false));
213 cookies_tree_model_->AddCookiesTreeObserver(this); 213 cookies_tree_model_->AddCookiesTreeObserver(this);
214 } 214 }
215 } 215 }
216 216
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 web_ui()->CallJavascriptFunction("CookiesView.loadChildren", args); 269 web_ui()->CallJavascriptFunction("CookiesView.loadChildren", args);
270 } 270 }
271 271
272 void CookiesViewHandler::ReloadCookies(const base::ListValue* args) { 272 void CookiesViewHandler::ReloadCookies(const base::ListValue* args) {
273 cookies_tree_model_.reset(); 273 cookies_tree_model_.reset();
274 274
275 EnsureCookiesTreeModelCreated(); 275 EnsureCookiesTreeModelCreated();
276 } 276 }
277 277
278 } // namespace options 278 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_channel_id_helper_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698