Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: chrome/browser/chromeos/first_run/step.cc

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iwyu fixes Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cctype> 9 #include <cctype>
10 #include <memory>
10 11
11 #include "ash/first_run/first_run_helper.h" 12 #include "ash/first_run/first_run_helper.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
14 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_actor.h" 14 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_actor.h"
15 #include "ui/gfx/geometry/size.h" 15 #include "ui/gfx/geometry/size.h"
16 #include "ui/views/widget/widget.h" 16 #include "ui/views/widget/widget.h"
17 17
18 namespace { 18 namespace {
19 19
20 // Converts from "with-dashes-names" to "WithDashesNames". 20 // Converts from "with-dashes-names" to "WithDashesNames".
21 std::string ToCamelCase(const std::string& name) { 21 std::string ToCamelCase(const std::string& name) {
22 std::string result; 22 std::string result;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 base::TimeDelta::FromMinutes(3), 82 base::TimeDelta::FromMinutes(3),
83 50, 83 50,
84 base::HistogramBase::kUmaTargetedHistogramFlag); 84 base::HistogramBase::kUmaTargetedHistogramFlag);
85 histogram->AddTime(base::Time::Now() - show_time_); 85 histogram->AddTime(base::Time::Now() - show_time_);
86 show_time_ = base::Time(); 86 show_time_ = base::Time();
87 } 87 }
88 88
89 } // namespace first_run 89 } // namespace first_run
90 } // namespace chromeos 90 } // namespace chromeos
91 91
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698