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

Side by Side Diff: chrome/browser/android/preferences/website_preference_bridge.cc

Issue 2359393002: Adds media license nodes to cookie tree model and cookies view. (Closed)
Patch Set: Changes Created 4 years, 2 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/android/preferences/website_preference_bridge.h" 5 #include "chrome/browser/android/preferences/website_preference_bridge.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 new BrowsingDataDatabaseHelper(profile_), 531 new BrowsingDataDatabaseHelper(profile_),
532 new BrowsingDataLocalStorageHelper(profile_), 532 new BrowsingDataLocalStorageHelper(profile_),
533 NULL, 533 NULL,
534 new BrowsingDataAppCacheHelper(profile_), 534 new BrowsingDataAppCacheHelper(profile_),
535 new BrowsingDataIndexedDBHelper(indexed_db_context), 535 new BrowsingDataIndexedDBHelper(indexed_db_context),
536 BrowsingDataFileSystemHelper::Create(file_system_context), 536 BrowsingDataFileSystemHelper::Create(file_system_context),
537 BrowsingDataQuotaHelper::Create(profile_), 537 BrowsingDataQuotaHelper::Create(profile_),
538 BrowsingDataChannelIDHelper::Create(profile_->GetRequestContext()), 538 BrowsingDataChannelIDHelper::Create(profile_->GetRequestContext()),
539 new BrowsingDataServiceWorkerHelper(service_worker_context), 539 new BrowsingDataServiceWorkerHelper(service_worker_context),
540 new BrowsingDataCacheStorageHelper(cache_storage_context), 540 new BrowsingDataCacheStorageHelper(cache_storage_context),
541 NULL,
msramek 2016/09/28 12:28:59 nit: Prefer "nullptr" for new code. Could you perh
jrummell 2016/09/29 22:07:36 Done.
541 NULL); 542 NULL);
542 543
543 cookies_tree_model_.reset(new CookiesTreeModel( 544 cookies_tree_model_.reset(new CookiesTreeModel(
544 container, profile_->GetExtensionSpecialStoragePolicy())); 545 container, profile_->GetExtensionSpecialStoragePolicy()));
545 cookies_tree_model_->AddCookiesTreeObserver(this); 546 cookies_tree_model_->AddCookiesTreeObserver(this);
546 } 547 }
547 548
548 // TreeModelObserver: 549 // TreeModelObserver:
549 void TreeNodesAdded(ui::TreeModel* model, 550 void TreeNodesAdded(ui::TreeModel* model,
550 ui::TreeModelNode* parent, 551 ui::TreeModelNode* parent,
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 GURL url(ConvertJavaStringToUTF8(env, jorigin)); 792 GURL url(ConvertJavaStringToUTF8(env, jorigin));
792 scoped_refptr<SiteDataDeleteHelper> site_data_deleter( 793 scoped_refptr<SiteDataDeleteHelper> site_data_deleter(
793 new SiteDataDeleteHelper(profile, url)); 794 new SiteDataDeleteHelper(profile, url));
794 site_data_deleter->Run(); 795 site_data_deleter->Run();
795 } 796 }
796 797
797 // Register native methods 798 // Register native methods
798 bool RegisterWebsitePreferenceBridge(JNIEnv* env) { 799 bool RegisterWebsitePreferenceBridge(JNIEnv* env) {
799 return RegisterNativesImpl(env); 800 return RegisterNativesImpl(env);
800 } 801 }
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/browsing_data/browsing_data_media_license_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698