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