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

Side by Side Diff: chrome/browser/chromeos/extensions/first_run_private_api.cc

Issue 2276823003: Change many chrome/browser includes to use qualified paths. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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/extensions/first_run_private_api.h" 5 #include "chrome/browser/chromeos/extensions/first_run_private_api.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/chromeos/first_run/first_run.h" 12 #include "chrome/browser/chromeos/first_run/first_run.h"
13 #include "chrome/browser/chromeos/profiles/profile_helper.h" 13 #include "chrome/browser/chromeos/profiles/profile_helper.h"
14 #include "chrome/browser/profiles/profile_manager.h" 14 #include "chrome/browser/profiles/profile_manager.h"
15 #include "chrome/grit/chromium_strings.h" 15 #include "chrome/grit/chromium_strings.h"
16 #include "chrome/grit/generated_resources.h" 16 #include "chrome/grit/generated_resources.h"
17 #include "components/strings/grit/components_strings.h"
17 #include "components/user_manager/user.h" 18 #include "components/user_manager/user.h"
18 #include "grit/components_strings.h"
19 #include "ui/base/l10n/l10n_util.h" 19 #include "ui/base/l10n/l10n_util.h"
20 #include "ui/base/webui/web_ui_util.h" 20 #include "ui/base/webui/web_ui_util.h"
21 21
22 bool FirstRunPrivateGetLocalizedStringsFunction::RunSync() { 22 bool FirstRunPrivateGetLocalizedStringsFunction::RunSync() {
23 UMA_HISTOGRAM_COUNTS("CrosFirstRun.DialogShown", 1); 23 UMA_HISTOGRAM_COUNTS("CrosFirstRun.DialogShown", 1);
24 std::unique_ptr<base::DictionaryValue> localized_strings( 24 std::unique_ptr<base::DictionaryValue> localized_strings(
25 new base::DictionaryValue()); 25 new base::DictionaryValue());
26 const user_manager::User* user = 26 const user_manager::User* user =
27 chromeos::ProfileHelper::Get()->GetUserByProfile(GetProfile()); 27 chromeos::ProfileHelper::Get()->GetUserByProfile(GetProfile());
28 if (!user->GetGivenName().empty()) { 28 if (!user->GetGivenName().empty()) {
(...skipping 27 matching lines...) Expand all
56 webui::SetLoadTimeDataDefaults(app_locale, localized_strings.get()); 56 webui::SetLoadTimeDataDefaults(app_locale, localized_strings.get());
57 57
58 SetResult(std::move(localized_strings)); 58 SetResult(std::move(localized_strings));
59 return true; 59 return true;
60 } 60 }
61 61
62 bool FirstRunPrivateLaunchTutorialFunction::RunSync() { 62 bool FirstRunPrivateLaunchTutorialFunction::RunSync() {
63 chromeos::first_run::LaunchTutorial(); 63 chromeos::first_run::LaunchTutorial();
64 return true; 64 return true;
65 } 65 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698