| OLD | NEW |
| 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/rlz/rlz.h" | 5 #include "chrome/browser/rlz/rlz.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/test/test_reg_util_win.h" | 10 #include "base/test/test_reg_util_win.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 private: | 104 private: |
| 105 virtual void ScheduleDelayedInit(int delay) OVERRIDE { | 105 virtual void ScheduleDelayedInit(int delay) OVERRIDE { |
| 106 // If the delay is 0, invoke the delayed init now. Otherwise, | 106 // If the delay is 0, invoke the delayed init now. Otherwise, |
| 107 // don't schedule anything, it will be manually called during tests. | 107 // don't schedule anything, it will be manually called during tests. |
| 108 if (delay == 0) | 108 if (delay == 0) |
| 109 DelayedInit(); | 109 DelayedInit(); |
| 110 } | 110 } |
| 111 | 111 |
| 112 virtual void ScheduleFinancialPing() OVERRIDE { | 112 virtual void ScheduleFinancialPing() OVERRIDE { |
| 113 PingNow(this); | 113 PingNowImpl(); |
| 114 } | 114 } |
| 115 | 115 |
| 116 virtual bool ScheduleGetAccessPointRlz(rlz_lib::AccessPoint point) OVERRIDE { | 116 virtual bool ScheduleGetAccessPointRlz(rlz_lib::AccessPoint point) OVERRIDE { |
| 117 return !assume_not_ui_thread_; | 117 return !assume_not_ui_thread_; |
| 118 } | 118 } |
| 119 | 119 |
| 120 virtual bool SendFinancialPing(const std::string& brand, | 120 virtual bool SendFinancialPing(const std::string& brand, |
| 121 const string16& lang, | 121 const string16& lang, |
| 122 const string16& referral) OVERRIDE { | 122 const string16& referral) OVERRIDE { |
| 123 // Don't ping the server during tests, just pretend as if we did. | 123 // Don't ping the server during tests, just pretend as if we did. |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 SetMainBrand("GGLS"); | 629 SetMainBrand("GGLS"); |
| 630 SetReactivationBrand("GGRS"); | 630 SetReactivationBrand("GGRS"); |
| 631 | 631 |
| 632 RLZTracker::InitRlzDelayed(true, 20, true, true); | 632 RLZTracker::InitRlzDelayed(true, 20, true, true); |
| 633 InvokeDelayedInit(); | 633 InvokeDelayedInit(); |
| 634 | 634 |
| 635 ExpectRlzPingSent(false); | 635 ExpectRlzPingSent(false); |
| 636 ExpectReactivationRlzPingSent(false); | 636 ExpectReactivationRlzPingSent(false); |
| 637 } | 637 } |
| 638 | 638 |
| OLD | NEW |