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

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

Issue 6773006: Add enableReferrers and enableHyperlinkAuditing to contentSettings.misc API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/renderer_preferences_util.h" 5 #include "chrome/browser/renderer_preferences_util.h"
6 6
7 #include "chrome/browser/prefs/pref_service.h"
7 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/common/pref_names.h"
8 10
9 #if defined(TOOLKIT_USES_GTK) 11 #if defined(TOOLKIT_USES_GTK)
10 #include "chrome/browser/ui/gtk/gtk_theme_service.h" 12 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
11 #include "chrome/browser/ui/gtk/gtk_util.h" 13 #include "chrome/browser/ui/gtk/gtk_util.h"
12 #endif 14 #endif
13 15
14 namespace renderer_preferences_util { 16 namespace renderer_preferences_util {
15 17
16 void UpdateFromSystemSettings(RendererPreferences* prefs, Profile* profile) { 18 void UpdateFromSystemSettings(RendererPreferences* prefs, Profile* profile) {
17 #if defined(TOOLKIT_USES_GTK) 19 #if defined(TOOLKIT_USES_GTK)
(...skipping 16 matching lines...) Expand all
34 theme_service->get_inactive_selection_fg_color(); 36 theme_service->get_inactive_selection_fg_color();
35 #else 37 #else
36 prefs->focus_ring_color = SkColorSetRGB(0x50, 0x7A, 0xD5); 38 prefs->focus_ring_color = SkColorSetRGB(0x50, 0x7A, 0xD5);
37 prefs->active_selection_bg_color = SkColorSetRGB(0xDC, 0xE4, 0xFA); 39 prefs->active_selection_bg_color = SkColorSetRGB(0xDC, 0xE4, 0xFA);
38 prefs->active_selection_fg_color = SK_ColorBLACK; 40 prefs->active_selection_fg_color = SK_ColorBLACK;
39 prefs->inactive_selection_bg_color = SkColorSetRGB(0xF7, 0xF7, 0xF7); 41 prefs->inactive_selection_bg_color = SkColorSetRGB(0xF7, 0xF7, 0xF7);
40 prefs->inactive_selection_fg_color = SK_ColorBLACK; 42 prefs->inactive_selection_fg_color = SK_ColorBLACK;
41 #endif // defined(OS_CHROMEOS) 43 #endif // defined(OS_CHROMEOS)
42 44
43 #endif // defined(TOOLKIT_USES_GTK) 45 #endif // defined(TOOLKIT_USES_GTK)
46
47 prefs->enable_referrers =
48 profile->GetPrefs()->GetBoolean(prefs::kEnableReferrers);
44 } 49 }
45 50
46 } // renderer_preferences_util 51 } // renderer_preferences_util
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | chrome/browser/tab_contents/render_view_host_delegate_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698