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

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

Issue 13868016: Detect when chrome is shutting down and don't SendFinacialPing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use alternate method for recognizing and handling shutdown Created 7 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 | « chrome/browser/rlz/rlz.h ('k') | rlz/lib/financial_ping.cc » ('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 // This code glues the RLZ library DLL with Chrome. It allows Chrome to work 5 // This code glues the RLZ library DLL with Chrome. It allows Chrome to work
6 // with or without the DLL being present. If the DLL is not present the 6 // with or without the DLL being present. If the DLL is not present the
7 // functions do nothing and just return false. 7 // functions do nothing and just return false.
8 8
9 #include "chrome/browser/rlz/rlz.h" 9 #include "chrome/browser/rlz/rlz.h"
10 10
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 base::Bind(&RLZTracker::ClearRlzStateImpl, 574 base::Bind(&RLZTracker::ClearRlzStateImpl,
575 base::Unretained(this))); 575 base::Unretained(this)));
576 return true; 576 return true;
577 } 577 }
578 #endif 578 #endif
579 579
580 // static 580 // static
581 void RLZTracker::CleanupRlz() { 581 void RLZTracker::CleanupRlz() {
582 GetInstance()->rlz_cache_.clear(); 582 GetInstance()->rlz_cache_.clear();
583 GetInstance()->registrar_.RemoveAll(); 583 GetInstance()->registrar_.RemoveAll();
584 rlz_lib::SetURLRequestContext(NULL);
584 } 585 }
585 586
586 // static 587 // static
587 void RLZTracker::EnableZeroDelayForTesting() { 588 void RLZTracker::EnableZeroDelayForTesting() {
588 GetInstance()->min_init_delay_ = base::TimeDelta(); 589 GetInstance()->min_init_delay_ = base::TimeDelta();
589 } 590 }
OLDNEW
« no previous file with comments | « chrome/browser/rlz/rlz.h ('k') | rlz/lib/financial_ping.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698