OLD | NEW |
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/metrics/variations/variations_service.h" | 5 #include "chrome/browser/metrics/variations/variations_service.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/build_time.h" | 9 #include "base/build_time.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 } | 632 } |
633 | 633 |
634 void VariationsService::RecordLastFetchTime() { | 634 void VariationsService::RecordLastFetchTime() { |
635 // local_state_ is NULL in tests, so check it first. | 635 // local_state_ is NULL in tests, so check it first. |
636 if (local_state_) { | 636 if (local_state_) { |
637 local_state_->SetInt64(prefs::kVariationsLastFetchTime, | 637 local_state_->SetInt64(prefs::kVariationsLastFetchTime, |
638 base::Time::Now().ToInternalValue()); | 638 base::Time::Now().ToInternalValue()); |
639 } | 639 } |
640 } | 640 } |
641 | 641 |
| 642 std::string VariationsService::GetInvalidVariationsSeedSignature() const { |
| 643 return seed_store_.GetInvalidSignature(); |
| 644 } |
| 645 |
642 } // namespace chrome_variations | 646 } // namespace chrome_variations |
OLD | NEW |