Chromium Code Reviews| Index: content/browser/browser_context.cc |
| diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc |
| index 8acae2d3668221667851988b7371d477bc7a7170..e7bab94964aa9cc93d27a326fa7da34e1eba1192 100644 |
| --- a/content/browser/browser_context.cc |
| +++ b/content/browser/browser_context.cc |
| @@ -15,6 +15,7 @@ |
| #include "content/public/browser/blob_handle.h" |
| #include "content/public/browser/browser_thread.h" |
| #include "content/public/browser/content_browser_client.h" |
| +#include "content/public/browser/host_zoom_map.h" |
| #include "content/public/browser/site_instance.h" |
| #include "net/cookies/cookie_monster.h" |
| #include "net/cookies/cookie_store.h" |
| @@ -84,6 +85,12 @@ void SaveSessionStateOnIndexedDBThread( |
| indexed_db_context->SetForceKeepSessionState(); |
| } |
| +void ChangeDefaultZoomForStoragePartition( |
| + double level, |
| + content::StoragePartition* partition) { |
| + partition->GetHostZoomMap()->SetDefaultZoomLevel(level); |
| +} |
| + |
| } // namespace |
| // static |
| @@ -104,6 +111,13 @@ void BrowserContext::GarbageCollectStoragePartitions( |
| active_paths.Pass(), done); |
| } |
| +// static |
| +void BrowserContext::SetDefaultZoomLevel(BrowserContext* context, |
|
Fady Samuel
2014/08/13 19:45:42
I'm not sure we want to do this. This will affect
wjmaclean
2014/08/14 18:18:21
Hmm, yes, I forgot about that.
I've been leaning
|
| + double level) { |
| + GetStoragePartitionMap(context)->ForEach( |
| + base::Bind(ChangeDefaultZoomForStoragePartition, level)); |
| +} |
| + |
| DownloadManager* BrowserContext::GetDownloadManager( |
| BrowserContext* context) { |
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| @@ -279,4 +293,13 @@ BrowserContext::~BrowserContext() { |
| #endif |
| } |
| +double BrowserContext::GetDefaultZoomLevel() const { |
| + return 0; |
| +} |
| + |
| +scoped_ptr<ZoomLevelPrefsDelegate> |
| +BrowserContext::CreateZoomLevelPrefsDelegate() { |
| + return scoped_ptr<ZoomLevelPrefsDelegate>(); |
| +} |
| + |
| } // namespace content |