| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/diagnostics/diagnostics_controller.h" | 5 #include "chrome/browser/diagnostics/diagnostics_controller.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "build/build_config.h" |
| 14 #include "chrome/browser/diagnostics/diagnostics_model.h" | 15 #include "chrome/browser/diagnostics/diagnostics_model.h" |
| 15 #include "chrome/browser/diagnostics/diagnostics_test.h" | 16 #include "chrome/browser/diagnostics/diagnostics_test.h" |
| 16 #include "chrome/browser/diagnostics/diagnostics_writer.h" | 17 #include "chrome/browser/diagnostics/diagnostics_writer.h" |
| 17 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
| 18 | 19 |
| 19 #if defined(OS_CHROMEOS) | 20 #if defined(OS_CHROMEOS) |
| 20 #include "chromeos/chromeos_switches.h" | 21 #include "chromeos/chromeos_switches.h" |
| 21 #endif | 22 #endif |
| 22 | 23 |
| 23 namespace diagnostics { | 24 namespace diagnostics { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 return -1; | 95 return -1; |
| 95 } | 96 } |
| 96 | 97 |
| 97 writer_ = writer; | 98 writer_ = writer; |
| 98 | 99 |
| 99 model_->RecoverAll(writer_); | 100 model_->RecoverAll(writer_); |
| 100 return 0; | 101 return 0; |
| 101 } | 102 } |
| 102 | 103 |
| 103 } // namespace diagnostics | 104 } // namespace diagnostics |
| OLD | NEW |