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

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

Issue 10823169: Another attempt at fixing dead frames being tracked by webNavigation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years, 4 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) 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/browser_process_impl.h" 5 #include "chrome/browser/browser_process_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 return io_thread()->system_url_request_context_getter(); 395 return io_thread()->system_url_request_context_getter();
396 } 396 }
397 397
398 chrome_variations::VariationsService* BrowserProcessImpl::variations_service() { 398 chrome_variations::VariationsService* BrowserProcessImpl::variations_service() {
399 DCHECK(CalledOnValidThread()); 399 DCHECK(CalledOnValidThread());
400 if (!variations_service_.get()) 400 if (!variations_service_.get())
401 variations_service_.reset(new chrome_variations::VariationsService()); 401 variations_service_.reset(new chrome_variations::VariationsService());
402 return variations_service_.get(); 402 return variations_service_.get();
403 } 403 }
404 404
405 ChromeResourceDispatcherHostDelegate*
406 BrowserProcessImpl::resource_dispatcher_host_delegate() {
407 DCHECK(CalledOnValidThread());
408 return resource_dispatcher_host_delegate_.get();
409 }
410
405 #if defined(OS_CHROMEOS) 411 #if defined(OS_CHROMEOS)
406 chromeos::OomPriorityManager* BrowserProcessImpl::oom_priority_manager() { 412 chromeos::OomPriorityManager* BrowserProcessImpl::oom_priority_manager() {
407 DCHECK(CalledOnValidThread()); 413 DCHECK(CalledOnValidThread());
408 if (!oom_priority_manager_.get()) 414 if (!oom_priority_manager_.get())
409 oom_priority_manager_.reset(new chromeos::OomPriorityManager()); 415 oom_priority_manager_.reset(new chromeos::OomPriorityManager());
410 return oom_priority_manager_.get(); 416 return oom_priority_manager_.get();
411 } 417 }
412 #endif // defined(OS_CHROMEOS) 418 #endif // defined(OS_CHROMEOS)
413 419
414 extensions::EventRouterForwarder* 420 extensions::EventRouterForwarder*
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 } 925 }
920 926
921 void BrowserProcessImpl::OnAutoupdateTimer() { 927 void BrowserProcessImpl::OnAutoupdateTimer() {
922 if (CanAutorestartForUpdate()) { 928 if (CanAutorestartForUpdate()) {
923 DLOG(WARNING) << "Detected update. Restarting browser."; 929 DLOG(WARNING) << "Detected update. Restarting browser.";
924 RestartBackgroundInstance(); 930 RestartBackgroundInstance();
925 } 931 }
926 } 932 }
927 933
928 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 934 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698