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

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

Issue 1582893002: Componentize IDS_CLOSE string so that it can be shared with iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/views/collected_cookies_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/chromeos/first_run/first_run.h" 9 #include "chrome/browser/chromeos/first_run/first_run.h"
10 #include "chrome/browser/chromeos/profiles/profile_helper.h" 10 #include "chrome/browser/chromeos/profiles/profile_helper.h"
11 #include "chrome/browser/profiles/profile_manager.h" 11 #include "chrome/browser/profiles/profile_manager.h"
12 #include "chrome/grit/chromium_strings.h" 12 #include "chrome/grit/chromium_strings.h"
13 #include "chrome/grit/generated_resources.h" 13 #include "chrome/grit/generated_resources.h"
14 #include "components/user_manager/user.h" 14 #include "components/user_manager/user.h"
15 #include "grit/components_strings.h"
15 #include "ui/base/l10n/l10n_util.h" 16 #include "ui/base/l10n/l10n_util.h"
16 #include "ui/base/webui/web_ui_util.h" 17 #include "ui/base/webui/web_ui_util.h"
17 18
18 bool FirstRunPrivateGetLocalizedStringsFunction::RunSync() { 19 bool FirstRunPrivateGetLocalizedStringsFunction::RunSync() {
19 UMA_HISTOGRAM_COUNTS("CrosFirstRun.DialogShown", 1); 20 UMA_HISTOGRAM_COUNTS("CrosFirstRun.DialogShown", 1);
20 base::DictionaryValue* localized_strings = new base::DictionaryValue(); 21 base::DictionaryValue* localized_strings = new base::DictionaryValue();
21 const user_manager::User* user = 22 const user_manager::User* user =
22 chromeos::ProfileHelper::Get()->GetUserByProfile(GetProfile()); 23 chromeos::ProfileHelper::Get()->GetUserByProfile(GetProfile());
23 if (!user->GetGivenName().empty()) { 24 if (!user->GetGivenName().empty()) {
24 localized_strings->SetString( 25 localized_strings->SetString(
(...skipping 26 matching lines...) Expand all
51 webui::SetLoadTimeDataDefaults(app_locale, localized_strings); 52 webui::SetLoadTimeDataDefaults(app_locale, localized_strings);
52 53
53 SetResult(localized_strings); 54 SetResult(localized_strings);
54 return true; 55 return true;
55 } 56 }
56 57
57 bool FirstRunPrivateLaunchTutorialFunction::RunSync() { 58 bool FirstRunPrivateLaunchTutorialFunction::RunSync() {
58 chromeos::first_run::LaunchTutorial(); 59 chromeos::first_run::LaunchTutorial();
59 return true; 60 return true;
60 } 61 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/views/collected_cookies_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698