| 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" | 
| 11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" | 
| 12 #include "base/metrics/sparse_histogram.h" | 12 #include "base/metrics/sparse_histogram.h" | 
| 13 #include "base/prefs/pref_registry_simple.h" | 13 #include "base/prefs/pref_registry_simple.h" | 
| 14 #include "base/prefs/pref_service.h" | 14 #include "base/prefs/pref_service.h" | 
| 15 #include "base/sys_info.h" | 15 #include "base/sys_info.h" | 
| 16 #include "base/timer/elapsed_timer.h" | 16 #include "base/timer/elapsed_timer.h" | 
| 17 #include "base/version.h" | 17 #include "base/version.h" | 
| 18 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" | 
| 19 #include "chrome/browser/metrics/metrics_state_manager.h" |  | 
| 20 #include "chrome/browser/network_time/network_time_tracker.h" | 19 #include "chrome/browser/network_time/network_time_tracker.h" | 
| 21 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" | 
| 22 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" | 
|  | 22 #include "components/metrics/metrics_state_manager.h" | 
| 23 #include "components/pref_registry/pref_registry_syncable.h" | 23 #include "components/pref_registry/pref_registry_syncable.h" | 
| 24 #include "components/variations/proto/variations_seed.pb.h" | 24 #include "components/variations/proto/variations_seed.pb.h" | 
| 25 #include "components/variations/variations_seed_processor.h" | 25 #include "components/variations/variations_seed_processor.h" | 
| 26 #include "components/variations/variations_seed_simulator.h" | 26 #include "components/variations/variations_seed_simulator.h" | 
| 27 #include "content/public/browser/browser_thread.h" | 27 #include "content/public/browser/browser_thread.h" | 
| 28 #include "net/base/load_flags.h" | 28 #include "net/base/load_flags.h" | 
| 29 #include "net/base/net_errors.h" | 29 #include "net/base/net_errors.h" | 
| 30 #include "net/base/network_change_notifier.h" | 30 #include "net/base/network_change_notifier.h" | 
| 31 #include "net/base/url_util.h" | 31 #include "net/base/url_util.h" | 
| 32 #include "net/http/http_response_headers.h" | 32 #include "net/http/http_response_headers.h" | 
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 548 | 548 | 
| 549 void VariationsService::RecordLastFetchTime() { | 549 void VariationsService::RecordLastFetchTime() { | 
| 550   // local_state_ is NULL in tests, so check it first. | 550   // local_state_ is NULL in tests, so check it first. | 
| 551   if (local_state_) { | 551   if (local_state_) { | 
| 552     local_state_->SetInt64(prefs::kVariationsLastFetchTime, | 552     local_state_->SetInt64(prefs::kVariationsLastFetchTime, | 
| 553                            base::Time::Now().ToInternalValue()); | 553                            base::Time::Now().ToInternalValue()); | 
| 554   } | 554   } | 
| 555 } | 555 } | 
| 556 | 556 | 
| 557 }  // namespace chrome_variations | 557 }  // namespace chrome_variations | 
| OLD | NEW | 
|---|