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

Side by Side Diff: chrome/browser/chrome_page_zoom.cc

Issue 674273002: Cleanup: Remove unneeded chrome/common/pref_names.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chrome_page_zoom.h" 5 #include "chrome/browser/chrome_page_zoom.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
11 #include "chrome/browser/chrome_page_zoom_constants.h" 11 #include "chrome/browser/chrome_page_zoom_constants.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/ui/zoom/zoom_controller.h" 13 #include "chrome/browser/ui/zoom/zoom_controller.h"
14 #include "chrome/common/pref_names.h"
15 #include "content/public/browser/host_zoom_map.h" 14 #include "content/public/browser/host_zoom_map.h"
16 #include "content/public/browser/render_view_host.h" 15 #include "content/public/browser/render_view_host.h"
17 #include "content/public/browser/user_metrics.h" 16 #include "content/public/browser/user_metrics.h"
18 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
19 #include "content/public/common/page_zoom.h" 18 #include "content/public/common/page_zoom.h"
20 #include "content/public/common/renderer_preferences.h" 19 #include "content/public/common/renderer_preferences.h"
21 20
22 using base::UserMetricsAction; 21 using base::UserMetricsAction;
23 22
24 namespace chrome_page_zoom { 23 namespace chrome_page_zoom {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 zoom_controller->SetZoomLevel(zoom_level); 110 zoom_controller->SetZoomLevel(zoom_level);
112 content::RecordAction(UserMetricsAction("ZoomPlus")); 111 content::RecordAction(UserMetricsAction("ZoomPlus"));
113 return; 112 return;
114 } 113 }
115 } 114 }
116 content::RecordAction(UserMetricsAction("ZoomPlus_AtMaximum")); 115 content::RecordAction(UserMetricsAction("ZoomPlus_AtMaximum"));
117 } 116 }
118 } 117 }
119 118
120 } // namespace chrome_page_zoom 119 } // namespace chrome_page_zoom
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_field_trials_desktop.cc ('k') | chrome/browser/chrome_plugin_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698