| 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/chromeos/first_run/step.h" | 5 #include "chrome/browser/chromeos/first_run/step.h" |
| 6 | 6 |
| 7 #include <cctype> | 7 #include <cctype> |
| 8 | 8 |
| 9 #include "ash/first_run/first_run_helper.h" | 9 #include "ash/first_run/first_run_helper.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 12 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_actor.h" | 12 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_actor.h" |
| 13 #include "ui/gfx/size.h" | 13 #include "ui/gfx/geometry/size.h" |
| 14 #include "ui/views/widget/widget.h" | 14 #include "ui/views/widget/widget.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 // Converts from "with-dashes-names" to "WithDashesNames". | 18 // Converts from "with-dashes-names" to "WithDashesNames". |
| 19 std::string ToCamelCase(const std::string& name) { | 19 std::string ToCamelCase(const std::string& name) { |
| 20 std::string result; | 20 std::string result; |
| 21 bool next_to_upper = true; | 21 bool next_to_upper = true; |
| 22 for (size_t i = 0; i < name.length(); ++i) { | 22 for (size_t i = 0; i < name.length(); ++i) { |
| 23 if (name[i] == '-') { | 23 if (name[i] == '-') { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 base::TimeDelta::FromMinutes(3), | 80 base::TimeDelta::FromMinutes(3), |
| 81 50, | 81 50, |
| 82 base::HistogramBase::kUmaTargetedHistogramFlag); | 82 base::HistogramBase::kUmaTargetedHistogramFlag); |
| 83 histogram->AddTime(base::Time::Now() - show_time_); | 83 histogram->AddTime(base::Time::Now() - show_time_); |
| 84 show_time_ = base::Time(); | 84 show_time_ = base::Time(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 } // namespace first_run | 87 } // namespace first_run |
| 88 } // namespace chromeos | 88 } // namespace chromeos |
| 89 | 89 |
| OLD | NEW |