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

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

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 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/common/system/system_notifier.h"
8 #include "ash/strings/grit/ash_strings.h" 7 #include "ash/strings/grit/ash_strings.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"
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 GURL(kNotificationOriginUrl), kNotificationId, optional, this); 282 GURL(kNotificationOriginUrl), kNotificationId, optional, this);
283 } 283 }
284 284
285 void HatsNotificationController::UpdateLastInteractionTime() { 285 void HatsNotificationController::UpdateLastInteractionTime() {
286 PrefService* pref_service = profile_->GetPrefs(); 286 PrefService* pref_service = profile_->GetPrefs();
287 pref_service->SetInt64(prefs::kHatsLastInteractionTimestamp, 287 pref_service->SetInt64(prefs::kHatsLastInteractionTimestamp,
288 base::Time::Now().ToInternalValue()); 288 base::Time::Now().ToInternalValue());
289 } 289 }
290 290
291 } // namespace chromeos 291 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698