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

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

Issue 113245: Remove unused kWindowTilePixels from browser.cc... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 7 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 | « no previous file | no next file » | 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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/browser.h" 5 #include "chrome/browser/browser.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/idle_timer.h" 9 #include "base/idle_timer.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 #endif // OS_WIN 79 #endif // OS_WIN
80 80
81 using base::TimeDelta; 81 using base::TimeDelta;
82 82
83 // How long we wait before updating the browser chrome while loading a page. 83 // How long we wait before updating the browser chrome while loading a page.
84 static const int kUIUpdateCoalescingTimeMS = 200; 84 static const int kUIUpdateCoalescingTimeMS = 200;
85 85
86 // Idle time before helping prune memory consumption. 86 // Idle time before helping prune memory consumption.
87 static const int kBrowserReleaseMemoryInterval = 30; // In seconds. 87 static const int kBrowserReleaseMemoryInterval = 30; // In seconds.
88 88
89 // How much horizontal and vertical offset there is between newly opened
90 // windows.
91 static const int kWindowTilePixels = 20;
92
93 /////////////////////////////////////////////////////////////////////////////// 89 ///////////////////////////////////////////////////////////////////////////////
94 90
95 // A task to reduce the working set of the child processes that live on the IO 91 // A task to reduce the working set of the child processes that live on the IO
96 // thread (i.e. plugins, workers). 92 // thread (i.e. plugins, workers).
97 class ReduceChildProcessesWorkingSetTask : public Task { 93 class ReduceChildProcessesWorkingSetTask : public Task {
98 public: 94 public:
99 virtual void Run() { 95 virtual void Run() {
100 #if defined(OS_WIN) 96 #if defined(OS_WIN)
101 for (ChildProcessHost::Iterator iter; !iter.Done(); ++iter) 97 for (ChildProcessHost::Iterator iter; !iter.Done(); ++iter)
102 iter->ReduceWorkingSet(); 98 iter->ReduceWorkingSet();
(...skipping 2518 matching lines...) Expand 10 before | Expand all | Expand 10 after
2621 2617
2622 // We need to register the window position pref. 2618 // We need to register the window position pref.
2623 std::wstring window_pref(prefs::kBrowserWindowPlacement); 2619 std::wstring window_pref(prefs::kBrowserWindowPlacement);
2624 window_pref.append(L"_"); 2620 window_pref.append(L"_");
2625 window_pref.append(app_name); 2621 window_pref.append(app_name);
2626 PrefService* prefs = g_browser_process->local_state(); 2622 PrefService* prefs = g_browser_process->local_state();
2627 DCHECK(prefs); 2623 DCHECK(prefs);
2628 2624
2629 prefs->RegisterDictionaryPref(window_pref.c_str()); 2625 prefs->RegisterDictionaryPref(window_pref.c_str());
2630 } 2626 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698