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

Side by Side Diff: chrome/browser/chromeos/arc/arc_support_host.cc

Issue 2434823002: arc: Add Goolge Privacy Policy link to OptIn UI. (Closed)
Patch Set: comments updated, make presubmit passed Created 4 years, 2 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/arc/arc_support_host.h" 5 #include "chrome/browser/chromeos/arc/arc_support_host.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "ash/common/system/chromeos/devicetype_utils.h" 9 #include "ash/common/system/chromeos/devicetype_utils.h"
10 #include "base/i18n/timezone.h" 10 #include "base/i18n/timezone.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 l10n_util::GetStringUTF16(IDS_ARC_OPT_IN_LEARN_MORE_STATISTICS)); 228 l10n_util::GetStringUTF16(IDS_ARC_OPT_IN_LEARN_MORE_STATISTICS));
229 loadtime_data->SetString( 229 loadtime_data->SetString(
230 "learnMoreBackupAndRestore", 230 "learnMoreBackupAndRestore",
231 l10n_util::GetStringUTF16(IDS_ARC_OPT_IN_LEARN_MORE_BACKUP_AND_RESTORE)); 231 l10n_util::GetStringUTF16(IDS_ARC_OPT_IN_LEARN_MORE_BACKUP_AND_RESTORE));
232 loadtime_data->SetString( 232 loadtime_data->SetString(
233 "learnMoreLocationServices", 233 "learnMoreLocationServices",
234 l10n_util::GetStringUTF16(IDS_ARC_OPT_IN_LEARN_MORE_LOCATION_SERVICES)); 234 l10n_util::GetStringUTF16(IDS_ARC_OPT_IN_LEARN_MORE_LOCATION_SERVICES));
235 loadtime_data->SetString( 235 loadtime_data->SetString(
236 "overlayClose", 236 "overlayClose",
237 l10n_util::GetStringUTF16(IDS_ARC_OPT_IN_LEARN_MORE_CLOSE)); 237 l10n_util::GetStringUTF16(IDS_ARC_OPT_IN_LEARN_MORE_CLOSE));
238 loadtime_data->SetString(
239 "privacyPolicyLink",
240 l10n_util::GetStringUTF16(IDS_ARC_OPT_IN_PRIVACY_POLICY_LINK));
238 241
239 const std::string& app_locale = g_browser_process->GetApplicationLocale(); 242 const std::string& app_locale = g_browser_process->GetApplicationLocale();
240 const std::string& country_code = base::CountryCodeForCurrentTimezone(); 243 const std::string& country_code = base::CountryCodeForCurrentTimezone();
241 loadtime_data->SetString("countryCode", country_code); 244 loadtime_data->SetString("countryCode", country_code);
242 loadtime_data->SetBoolean(kArcManaged, arc_auth_service->IsArcManaged()); 245 loadtime_data->SetBoolean(kArcManaged, arc_auth_service->IsArcManaged());
243 246
244 webui::SetLoadTimeDataDefaults(app_locale, loadtime_data.get()); 247 webui::SetLoadTimeDataDefaults(app_locale, loadtime_data.get());
245 DCHECK(arc_auth_service); 248 DCHECK(arc_auth_service);
246 const std::string device_id = user_manager::known_user::GetDeviceId( 249 const std::string device_id = user_manager::known_user::GetDeviceId(
247 multi_user_util::GetAccountIdFromProfile(arc_auth_service->profile())); 250 multi_user_util::GetAccountIdFromProfile(arc_auth_service->profile()));
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 } else { 412 } else {
410 LOG(ERROR) << "Unknown message: " << message_string; 413 LOG(ERROR) << "Unknown message: " << message_string;
411 NOTREACHED(); 414 NOTREACHED();
412 } 415 }
413 } 416 }
414 417
415 scoped_refptr<base::SingleThreadTaskRunner> ArcSupportHost::task_runner() 418 scoped_refptr<base::SingleThreadTaskRunner> ArcSupportHost::task_runner()
416 const { 419 const {
417 return base::ThreadTaskRunnerHandle::Get(); 420 return base::ThreadTaskRunnerHandle::Get();
418 } 421 }
OLDNEW
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/resources/chromeos/arc_support/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698