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

Side by Side Diff: chrome/browser/notifications/message_center_notification_manager_win.cc

Issue 674273002: Cleanup: Remove unneeded chrome/common/pref_names.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/notifications/message_center_notification_manager.h" 5 #include "chrome/browser/notifications/message_center_notification_manager.h"
6 6
7 #include "chrome/common/pref_names.h"
8 #include "ui/message_center/message_center_tray.h" 7 #include "ui/message_center/message_center_tray.h"
9 8
10 void MessageCenterNotificationManager::DisplayFirstRunBalloon() { 9 void MessageCenterNotificationManager::DisplayFirstRunBalloon() {
11 // Store for posterity the fact that we've shown the first-run balloon. 10 // Store for posterity the fact that we've shown the first-run balloon.
12 DCHECK(tray_.get()); 11 DCHECK(tray_.get());
13 first_run_pref_.SetValue(true); 12 first_run_pref_.SetValue(true);
14 tray_->DisplayFirstRunBalloon(); 13 tray_->DisplayFirstRunBalloon();
15 } 14 }
16 15
17 void MessageCenterNotificationManager::SetFirstRunTimeoutForTest( 16 void MessageCenterNotificationManager::SetFirstRunTimeoutForTest(
(...skipping 26 matching lines...) Expand all
44 // No need to restart the timer if it's already going. 43 // No need to restart the timer if it's already going.
45 if (first_run_balloon_timer_.IsRunning()) 44 if (first_run_balloon_timer_.IsRunning())
46 return; 45 return;
47 46
48 first_run_balloon_timer_.Start( 47 first_run_balloon_timer_.Start(
49 FROM_HERE, 48 FROM_HERE,
50 first_run_idle_timeout_, 49 first_run_idle_timeout_,
51 base::Bind(&MessageCenterNotificationManager::DisplayFirstRunBalloon, 50 base::Bind(&MessageCenterNotificationManager::DisplayFirstRunBalloon,
52 weak_factory_.GetWeakPtr())); 51 weak_factory_.GetWeakPtr()));
53 } 52 }
OLDNEW
« no previous file with comments | « chrome/browser/net/proxy_service_factory.cc ('k') | chrome/browser/predictors/resource_prefetch_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698