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

Side by Side Diff: content/browser/browsing_data/browsing_data_remover_impl_unittest.cc

Issue 2874833002: Don't compile code for desktop zoom or GuestViews on mobile platforms. (Closed)
Patch Set: Rebase. Created 3 years, 7 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 | « content/browser/BUILD.gn ('k') | content/browser/download/download_manager_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 return nullptr; 145 return nullptr;
146 } 146 }
147 storage::DatabaseTracker* GetDatabaseTracker() override { return nullptr; } 147 storage::DatabaseTracker* GetDatabaseTracker() override { return nullptr; }
148 DOMStorageContext* GetDOMStorageContext() override { return nullptr; } 148 DOMStorageContext* GetDOMStorageContext() override { return nullptr; }
149 IndexedDBContext* GetIndexedDBContext() override { return nullptr; } 149 IndexedDBContext* GetIndexedDBContext() override { return nullptr; }
150 ServiceWorkerContext* GetServiceWorkerContext() override { return nullptr; } 150 ServiceWorkerContext* GetServiceWorkerContext() override { return nullptr; }
151 CacheStorageContext* GetCacheStorageContext() override { return nullptr; } 151 CacheStorageContext* GetCacheStorageContext() override { return nullptr; }
152 PlatformNotificationContext* GetPlatformNotificationContext() override { 152 PlatformNotificationContext* GetPlatformNotificationContext() override {
153 return nullptr; 153 return nullptr;
154 } 154 }
155 #if !defined(OS_ANDROID)
155 HostZoomMap* GetHostZoomMap() override { return nullptr; } 156 HostZoomMap* GetHostZoomMap() override { return nullptr; }
156 HostZoomLevelContext* GetHostZoomLevelContext() override { return nullptr; } 157 HostZoomLevelContext* GetHostZoomLevelContext() override { return nullptr; }
157 ZoomLevelDelegate* GetZoomLevelDelegate() override { return nullptr; } 158 ZoomLevelDelegate* GetZoomLevelDelegate() override { return nullptr; }
159 #endif // !defined(OS_ANDROID)
158 160
159 void ClearDataForOrigin(uint32_t remove_mask, 161 void ClearDataForOrigin(uint32_t remove_mask,
160 uint32_t quota_storage_remove_mask, 162 uint32_t quota_storage_remove_mask,
161 const GURL& storage_origin, 163 const GURL& storage_origin,
162 net::URLRequestContextGetter* rq_context, 164 net::URLRequestContextGetter* rq_context,
163 const base::Closure& callback) override { 165 const base::Closure& callback) override {
164 BrowserThread::PostTask( 166 BrowserThread::PostTask(
165 BrowserThread::UI, FROM_HERE, 167 BrowserThread::UI, FROM_HERE,
166 base::BindOnce(&TestStoragePartition::AsyncRunCallback, 168 base::BindOnce(&TestStoragePartition::AsyncRunCallback,
167 base::Unretained(this), callback)); 169 base::Unretained(this), callback));
(...skipping 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after
1649 1651
1650 // Add one more deletion and wait for it. 1652 // Add one more deletion and wait for it.
1651 BlockUntilBrowsingDataRemoved( 1653 BlockUntilBrowsingDataRemoved(
1652 base::Time(), base::Time::Max(), BrowsingDataRemover::DATA_TYPE_COOKIES, 1654 base::Time(), base::Time::Max(), BrowsingDataRemover::DATA_TYPE_COOKIES,
1653 BrowsingDataRemover::ORIGIN_TYPE_UNPROTECTED_WEB); 1655 BrowsingDataRemover::ORIGIN_TYPE_UNPROTECTED_WEB);
1654 1656
1655 EXPECT_FALSE(remover->is_removing()); 1657 EXPECT_FALSE(remover->is_removing());
1656 } 1658 }
1657 1659
1658 } // namespace content 1660 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/download/download_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698