Index: content/browser/browser_context.cc |
diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc |
index 8acae2d3668221667851988b7371d477bc7a7170..d37aa03dd22aad027c99f3eb59ef2358b5e14f2e 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,13 @@ void SaveSessionStateOnIndexedDBThread( |
indexed_db_context->SetForceKeepSessionState(); |
} |
+void ChangeDefaultZoomForStoragePartition( |
+ double level, |
+ content::StoragePartition* partition) { |
+ DCHECK(partition); |
awong
2014/08/12 21:07:06
IIRC, if you're just going to crash on the next li
wjmaclean
2014/08/13 17:16:03
Done.
|
+ partition->GetHostZoomMap()->SetDefaultZoomLevel(level); |
+} |
+ |
} // namespace |
// static |
@@ -104,6 +112,13 @@ void BrowserContext::GarbageCollectStoragePartitions( |
active_paths.Pass(), done); |
} |
+// static |
+void BrowserContext::SetDefaultZoomLevel(BrowserContext* context, |
+ double level) { |
+ GetStoragePartitionMap(context)->ForEach( |
+ base::Bind(ChangeDefaultZoomForStoragePartition, level)); |
+} |
+ |
DownloadManager* BrowserContext::GetDownloadManager( |
BrowserContext* context) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
@@ -279,4 +294,12 @@ BrowserContext::~BrowserContext() { |
#endif |
} |
+double BrowserContext::GetDefaultZoomLevel() const { |
+ return 0; |
+} |
+ |
+ZoomLevelPrefsDelegate* BrowserContext::CreateZoomLevelPrefsDelegate() { |
+ return NULL; |
+} |
+ |
} // namespace content |