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

Unified Diff: chrome/browser/profiles/host_zoom_map_browsertest.cc

Issue 506073002: Rename HostZoomMap::GetForBrowserContext() to GetDefaultForBrowserContext(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/profiles/off_the_record_profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/host_zoom_map_browsertest.cc
diff --git a/chrome/browser/profiles/host_zoom_map_browsertest.cc b/chrome/browser/profiles/host_zoom_map_browsertest.cc
index 0765bfa43008a53e03c85ca82c7b86f635d9e688..e14a579048bbc586f142f9d74482c5069cd71ffa 100644
--- a/chrome/browser/profiles/host_zoom_map_browsertest.cc
+++ b/chrome/browser/profiles/host_zoom_map_browsertest.cc
@@ -41,7 +41,7 @@ class ZoomLevelChangeObserver {
explicit ZoomLevelChangeObserver(Profile* profile)
: message_loop_runner_(new content::MessageLoopRunner) {
content::HostZoomMap* host_zoom_map = static_cast<content::HostZoomMap*>(
- content::HostZoomMap::GetForBrowserContext(profile));
+ content::HostZoomMap::GetDefaultForBrowserContext(profile));
subscription_ = host_zoom_map->AddZoomLevelChangedCallback(base::Bind(
&ZoomLevelChangeObserver::OnZoomLevelChanged, base::Unretained(this)));
}
@@ -81,7 +81,8 @@ class HostZoomMapBrowserTest : public InProcessBrowserTest {
double GetZoomLevel(const GURL& url) {
content::HostZoomMap* host_zoom_map = static_cast<content::HostZoomMap*>(
- content::HostZoomMap::GetForBrowserContext(browser()->profile()));
+ content::HostZoomMap::GetDefaultForBrowserContext(
+ browser()->profile()));
return host_zoom_map->GetZoomLevelForHostAndScheme(url.scheme(),
url.host());
}
@@ -89,7 +90,8 @@ class HostZoomMapBrowserTest : public InProcessBrowserTest {
std::vector<std::string> GetHostsWithZoomLevels() {
typedef content::HostZoomMap::ZoomLevelVector ZoomLevelVector;
content::HostZoomMap* host_zoom_map = static_cast<content::HostZoomMap*>(
- content::HostZoomMap::GetForBrowserContext(browser()->profile()));
+ content::HostZoomMap::GetDefaultForBrowserContext(
+ browser()->profile()));
content::HostZoomMap::ZoomLevelVector zoom_levels =
host_zoom_map->GetAllZoomLevels();
std::vector<std::string> results;
« no previous file with comments | « no previous file | chrome/browser/profiles/off_the_record_profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698