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

Side by Side Diff: chrome/browser/chromeos/hats/hats_notification_controller.cc

Issue 2911773002: Clean up unused grit header includes in chrome/ (Closed)
Patch Set: rebase Created 3 years, 6 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 (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/strings/grit/ash_strings.h" 7 #include "ash/strings/grit/ash_strings.h"
8 #include "ash/system/system_notifier.h" 8 #include "ash/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 "base/memory/ptr_util.h"
12 #include "base/task_scheduler/post_task.h" 12 #include "base/task_scheduler/post_task.h"
13 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
14 #include "chrome/browser/chromeos/hats/hats_dialog.h" 14 #include "chrome/browser/chromeos/hats/hats_dialog.h"
15 #include "chrome/browser/chromeos/hats/hats_finch_helper.h" 15 #include "chrome/browser/chromeos/hats/hats_finch_helper.h"
16 #include "chrome/browser/chromeos/login/startup_utils.h" 16 #include "chrome/browser/chromeos/login/startup_utils.h"
17 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" 17 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
18 #include "chrome/browser/chromeos/profiles/profile_helper.h" 18 #include "chrome/browser/chromeos/profiles/profile_helper.h"
19 #include "chrome/browser/notifications/notification_ui_manager.h" 19 #include "chrome/browser/notifications/notification_ui_manager.h"
20 #include "chrome/browser/profiles/profile.h" 20 #include "chrome/browser/profiles/profile.h"
21 #include "chrome/browser/search/suggestions/image_decoder_impl.h" 21 #include "chrome/browser/search/suggestions/image_decoder_impl.h"
22 #include "chrome/common/chrome_features.h" 22 #include "chrome/common/chrome_features.h"
23 #include "chrome/common/pref_names.h" 23 #include "chrome/common/pref_names.h"
24 #include "chrome/grit/theme_resources.h"
25 #include "chromeos/chromeos_switches.h" 24 #include "chromeos/chromeos_switches.h"
26 #include "chromeos/network/network_state.h" 25 #include "chromeos/network/network_state.h"
27 #include "components/image_fetcher/core/image_fetcher_impl.h" 26 #include "components/image_fetcher/core/image_fetcher_impl.h"
28 #include "components/prefs/pref_service.h" 27 #include "components/prefs/pref_service.h"
29 #include "net/traffic_annotation/network_traffic_annotation.h" 28 #include "net/traffic_annotation/network_traffic_annotation.h"
30 #include "ui/base/l10n/l10n_util.h" 29 #include "ui/base/l10n/l10n_util.h"
31 #include "ui/base/resource/resource_bundle.h" 30 #include "ui/base/resource/resource_bundle.h"
32 #include "ui/gfx/image/image_skia_rep.h" 31 #include "ui/gfx/image/image_skia_rep.h"
33 #include "ui/message_center/message_center.h" 32 #include "ui/message_center/message_center.h"
34 #include "ui/message_center/notification_types.h" 33 #include "ui/message_center/notification_types.h"
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 GURL(kNotificationOriginUrl), kNotificationId, optional, this); 285 GURL(kNotificationOriginUrl), kNotificationId, optional, this);
287 } 286 }
288 287
289 void HatsNotificationController::UpdateLastInteractionTime() { 288 void HatsNotificationController::UpdateLastInteractionTime() {
290 PrefService* pref_service = profile_->GetPrefs(); 289 PrefService* pref_service = profile_->GetPrefs();
291 pref_service->SetInt64(prefs::kHatsLastInteractionTimestamp, 290 pref_service->SetInt64(prefs::kHatsLastInteractionTimestamp,
292 base::Time::Now().ToInternalValue()); 291 base::Time::Now().ToInternalValue());
293 } 292 }
294 293
295 } // namespace chromeos 294 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698