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

Side by Side Diff: chrome/browser/tab_contents/render_view_host_delegate_helper.cc

Issue 8493017: Cleanup extension permissions module. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 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 | 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/tab_contents/render_view_host_delegate_helper.h" 5 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 22 matching lines...) Expand all
33 #include "content/browser/renderer_host/render_widget_fullscreen_host.h" 33 #include "content/browser/renderer_host/render_widget_fullscreen_host.h"
34 #include "content/browser/renderer_host/render_widget_host.h" 34 #include "content/browser/renderer_host/render_widget_host.h"
35 #include "content/browser/renderer_host/render_widget_host_view.h" 35 #include "content/browser/renderer_host/render_widget_host_view.h"
36 #include "content/browser/site_instance.h" 36 #include "content/browser/site_instance.h"
37 #include "content/browser/tab_contents/navigation_details.h" 37 #include "content/browser/tab_contents/navigation_details.h"
38 #include "content/browser/tab_contents/tab_contents.h" 38 #include "content/browser/tab_contents/tab_contents.h"
39 #include "content/browser/tab_contents/tab_contents_delegate.h" 39 #include "content/browser/tab_contents/tab_contents_delegate.h"
40 #include "content/browser/tab_contents/tab_contents_view.h" 40 #include "content/browser/tab_contents/tab_contents_view.h"
41 #include "content/browser/webui/web_ui.h" 41 #include "content/browser/webui/web_ui.h"
42 #include "content/public/browser/notification_service.h" 42 #include "content/public/browser/notification_service.h"
43 #include "content/public/browser/notification_types.h"
43 #include "content/common/view_messages.h" 44 #include "content/common/view_messages.h"
44 #include "net/base/network_change_notifier.h" 45 #include "net/base/network_change_notifier.h"
45 46
46 namespace { 47 namespace {
47 48
48 // Fills |map| with the per-script font prefs under path |map_name|. 49 // Fills |map| with the per-script font prefs under path |map_name|.
49 void FillFontFamilyMap(const PrefService* prefs, 50 void FillFontFamilyMap(const PrefService* prefs,
50 const char* map_name, 51 const char* map_name,
51 WebPreferences::ScriptFontFamilyMap* map) { 52 WebPreferences::ScriptFontFamilyMap* map) {
52 for (size_t i = 0; i < prefs::kWebKitScriptsForFontFamilyMapsLength; ++i) { 53 for (size_t i = 0; i < prefs::kWebKitScriptsForFontFamilyMapsLength; ++i) {
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 DictionaryValue* inspector_settings = update.Get(); 562 DictionaryValue* inspector_settings = update.Get();
562 inspector_settings->SetWithoutPathExpansion(key, 563 inspector_settings->SetWithoutPathExpansion(key,
563 Value::CreateStringValue(value)); 564 Value::CreateStringValue(value));
564 } 565 }
565 566
566 void RenderViewHostDelegateHelper::ClearInspectorSettings( 567 void RenderViewHostDelegateHelper::ClearInspectorSettings(
567 content::BrowserContext* browser_context) { 568 content::BrowserContext* browser_context) {
568 Profile::FromBrowserContext(browser_context)->GetPrefs()-> 569 Profile::FromBrowserContext(browser_context)->GetPrefs()->
569 ClearPref(prefs::kWebKitInspectorSettings); 570 ClearPref(prefs::kWebKitInspectorSettings);
570 } 571 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698