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

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

Issue 2485233002: Do not run Android management check for re-auth case. (Closed)
Patch Set: rebase Created 4 years, 1 month 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // "onAgree" is fired when a user clicks "Agree" button. 68 // "onAgree" is fired when a user clicks "Agree" button.
69 // The message should have the following three fields: 69 // The message should have the following three fields:
70 // - isMetricsEnabled 70 // - isMetricsEnabled
71 // - isBackupRestoreEnabled 71 // - isBackupRestoreEnabled
72 // - isLocationServiceEnabled 72 // - isLocationServiceEnabled
73 constexpr char kEventOnAgreed[] = "onAgreed"; 73 constexpr char kEventOnAgreed[] = "onAgreed";
74 constexpr char kIsMetricsEnabled[] = "isMetricsEnabled"; 74 constexpr char kIsMetricsEnabled[] = "isMetricsEnabled";
75 constexpr char kIsBackupRestoreEnabled[] = "isBackupRestoreEnabled"; 75 constexpr char kIsBackupRestoreEnabled[] = "isBackupRestoreEnabled";
76 constexpr char kIsLocationServiceEnabled[] = "isLocationServiceEnabled"; 76 constexpr char kIsLocationServiceEnabled[] = "isLocationServiceEnabled";
77 77
78 // "onRetryClicked" is fired when a user clicks "RETRY" button on the error
79 // page.
80 constexpr char kEventOnRetryClicked[] = "onRetryClicked";
81
78 // "onSendFeedbackClicked" is fired when a user clicks "Send Feedback" button. 82 // "onSendFeedbackClicked" is fired when a user clicks "Send Feedback" button.
79 constexpr char kEventOnSendFeedbackClicked[] = "onSendFeedbackClicked"; 83 constexpr char kEventOnSendFeedbackClicked[] = "onSendFeedbackClicked";
80 84
81 } // namespace 85 } // namespace
82 86
83 // static 87 // static
84 const char ArcSupportHost::kHostAppId[] = "cnbgggchhmkkdmeppjobngjoejnihlei"; 88 const char ArcSupportHost::kHostAppId[] = "cnbgggchhmkkdmeppjobngjoejnihlei";
85 89
86 // static 90 // static
87 const char ArcSupportHost::kStorageId[] = "arc_support"; 91 const char ArcSupportHost::kStorageId[] = "arc_support";
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 if (message.GetBoolean(kIsMetricsEnabled, &is_metrics_enabled) && 372 if (message.GetBoolean(kIsMetricsEnabled, &is_metrics_enabled) &&
369 message.GetBoolean(kIsBackupRestoreEnabled, 373 message.GetBoolean(kIsBackupRestoreEnabled,
370 &is_backup_restore_enabled) && 374 &is_backup_restore_enabled) &&
371 message.GetBoolean(kIsLocationServiceEnabled, 375 message.GetBoolean(kIsLocationServiceEnabled,
372 &is_location_service_enabled)) { 376 &is_location_service_enabled)) {
373 observer_->OnTermsAgreed(is_metrics_enabled, is_backup_restore_enabled, 377 observer_->OnTermsAgreed(is_metrics_enabled, is_backup_restore_enabled,
374 is_location_service_enabled); 378 is_location_service_enabled);
375 } else { 379 } else {
376 NOTREACHED(); 380 NOTREACHED();
377 } 381 }
382 } else if (event == kEventOnRetryClicked) {
383 observer_->OnRetryClicked();
378 } else if (event == kEventOnSendFeedbackClicked) { 384 } else if (event == kEventOnSendFeedbackClicked) {
379 observer_->OnSendFeedbackClicked(); 385 observer_->OnSendFeedbackClicked();
380 } else { 386 } else {
381 LOG(ERROR) << "Unknown message: " << event; 387 LOG(ERROR) << "Unknown message: " << event;
382 NOTREACHED(); 388 NOTREACHED();
383 } 389 }
384 } 390 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_support_host.h ('k') | chrome/browser/resources/chromeos/arc_support/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698