| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/hats/hats_notification_controller.h" | 5 #include "chrome/browser/chromeos/hats/hats_notification_controller.h" |
| 6 | 6 |
| 7 #include "ash/system/system_notifier.h" | 7 #include "ash/common/system/system_notifier.h" |
| 8 #include "base/feature_list.h" | 8 #include "base/feature_list.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| 11 #include "chrome/browser/chromeos/hats/hats_dialog.h" | 11 #include "chrome/browser/chromeos/hats/hats_dialog.h" |
| 12 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 12 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
| 13 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 13 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 14 #include "chrome/browser/notifications/notification_ui_manager.h" | 14 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 16 #include "chrome/common/chrome_features.h" | 16 #include "chrome/common/chrome_features.h" |
| 17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 GURL() /* Send an empty invalid url */, kNotificationId, optional, this); | 161 GURL() /* Send an empty invalid url */, kNotificationId, optional, this); |
| 162 } | 162 } |
| 163 | 163 |
| 164 void HatsNotificationController::UpdateLastInteractionTime() { | 164 void HatsNotificationController::UpdateLastInteractionTime() { |
| 165 PrefService* pref_service = profile_->GetPrefs(); | 165 PrefService* pref_service = profile_->GetPrefs(); |
| 166 pref_service->SetInt64(prefs::kHatsLastInteractionTimestamp, | 166 pref_service->SetInt64(prefs::kHatsLastInteractionTimestamp, |
| 167 base::Time::Now().ToInternalValue()); | 167 base::Time::Now().ToInternalValue()); |
| 168 } | 168 } |
| 169 | 169 |
| 170 } // namespace chromeos | 170 } // namespace chromeos |
| OLD | NEW |