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

Side by Side Diff: chrome/browser/ui/browser_view_prefs.cc

Issue 11741003: Remove PrefServiceSimple, replacing it with PrefService and PrefRegistrySimple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix double registration in Chrome Frame test. Created 7 years, 10 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
« no previous file with comments | « chrome/browser/ui/browser_view_prefs.h ('k') | chrome/browser/ui/cocoa/confirm_quit.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ui/browser_view_prefs.h" 5 #include "chrome/browser/ui/browser_view_prefs.h"
6 6
7 #include "chrome/browser/prefs/pref_service.h" 7 #include "chrome/browser/prefs/pref_registry_simple.h"
8 #include "chrome/common/pref_names.h" 8 #include "chrome/common/pref_names.h"
9 9
10 namespace { 10 namespace {
11 11
12 // How long do we wait before we consider a window hung (in ms). 12 // How long do we wait before we consider a window hung (in ms).
13 const int kDefaultPluginMessageResponseTimeout = 25000; 13 const int kDefaultPluginMessageResponseTimeout = 25000;
14 14
15 // How frequently we check for hung plugin windows. 15 // How frequently we check for hung plugin windows.
16 const int kDefaultHungPluginDetectFrequency = 2000; 16 const int kDefaultHungPluginDetectFrequency = 2000;
17 17
18 } // namespace 18 } // namespace
19 19
20 namespace chrome { 20 namespace chrome {
21 21
22 void RegisterBrowserViewPrefs(PrefServiceSimple* prefs) { 22 void RegisterBrowserViewPrefs(PrefRegistrySimple* registry) {
23 prefs->RegisterIntegerPref(prefs::kPluginMessageResponseTimeout, 23 registry->RegisterIntegerPref(prefs::kPluginMessageResponseTimeout,
24 kDefaultPluginMessageResponseTimeout); 24 kDefaultPluginMessageResponseTimeout);
25 prefs->RegisterIntegerPref(prefs::kHungPluginDetectFrequency, 25 registry->RegisterIntegerPref(prefs::kHungPluginDetectFrequency,
26 kDefaultHungPluginDetectFrequency); 26 kDefaultHungPluginDetectFrequency);
27 } 27 }
28 28
29 } // namespace chrome 29 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_view_prefs.h ('k') | chrome/browser/ui/cocoa/confirm_quit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698