| 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/common/strings/grit/ash_strings.h" | 7 #include "ash/common/strings/grit/ash_strings.h" |
| 8 #include "ash/common/system/system_notifier.h" | 8 #include "ash/common/system/system_notifier.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
| 11 #include "base/memory/ptr_util.h" |
| 11 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
| 12 #include "chrome/browser/chromeos/hats/hats_dialog.h" | 13 #include "chrome/browser/chromeos/hats/hats_dialog.h" |
| 13 #include "chrome/browser/chromeos/hats/hats_finch_helper.h" | 14 #include "chrome/browser/chromeos/hats/hats_finch_helper.h" |
| 14 #include "chrome/browser/chromeos/login/startup_utils.h" | 15 #include "chrome/browser/chromeos/login/startup_utils.h" |
| 15 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 16 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
| 16 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 17 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 17 #include "chrome/browser/notifications/notification_ui_manager.h" | 18 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 18 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
| 19 #include "chrome/browser/search/suggestions/image_decoder_impl.h" | 20 #include "chrome/browser/search/suggestions/image_decoder_impl.h" |
| 20 #include "chrome/common/chrome_features.h" | 21 #include "chrome/common/chrome_features.h" |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 GURL(kNotificationOriginUrl), kNotificationId, optional, this); | 281 GURL(kNotificationOriginUrl), kNotificationId, optional, this); |
| 281 } | 282 } |
| 282 | 283 |
| 283 void HatsNotificationController::UpdateLastInteractionTime() { | 284 void HatsNotificationController::UpdateLastInteractionTime() { |
| 284 PrefService* pref_service = profile_->GetPrefs(); | 285 PrefService* pref_service = profile_->GetPrefs(); |
| 285 pref_service->SetInt64(prefs::kHatsLastInteractionTimestamp, | 286 pref_service->SetInt64(prefs::kHatsLastInteractionTimestamp, |
| 286 base::Time::Now().ToInternalValue()); | 287 base::Time::Now().ToInternalValue()); |
| 287 } | 288 } |
| 288 | 289 |
| 289 } // namespace chromeos | 290 } // namespace chromeos |
| OLD | NEW |