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

Side by Side Diff: chrome/browser/upgrade_detector.cc

Issue 18640003: Updates some includes of chrome_notification_types.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/upgrade_detector.h" 5 #include "chrome/browser/upgrade_detector.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/prefs/pref_registry_simple.h" 9 #include "base/prefs/pref_registry_simple.h"
10 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/lifetime/application_lifetime.h" 11 #include "chrome/browser/lifetime/application_lifetime.h"
11 #include "chrome/browser/ui/browser_otr_state.h" 12 #include "chrome/browser/ui/browser_otr_state.h"
12 #include "chrome/common/chrome_notification_types.h"
13 #include "chrome/common/chrome_switches.h" 13 #include "chrome/common/chrome_switches.h"
14 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
15 #include "content/public/browser/notification_service.h" 15 #include "content/public/browser/notification_service.h"
16 #include "grit/theme_resources.h" 16 #include "grit/theme_resources.h"
17 17
18 // How long to wait between checks for whether the user has been idle. 18 // How long to wait between checks for whether the user has been idle.
19 static const int kIdleRepeatingTimerWait = 10; // Minutes (seconds if testing). 19 static const int kIdleRepeatingTimerWait = 10; // Minutes (seconds if testing).
20 20
21 // How much idle time (since last input even was detected) must have passed 21 // How much idle time (since last input even was detected) must have passed
22 // until we notify that a critical update has occurred. 22 // until we notify that a critical update has occurred.
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 break; 155 break;
156 case IDLE_STATE_ACTIVE: 156 case IDLE_STATE_ACTIVE:
157 case IDLE_STATE_UNKNOWN: 157 case IDLE_STATE_UNKNOWN:
158 break; 158 break;
159 default: 159 default:
160 NOTREACHED(); // Need to add any new value above (either providing 160 NOTREACHED(); // Need to add any new value above (either providing
161 // automatic restart or show notification to user). 161 // automatic restart or show notification to user).
162 break; 162 break;
163 } 163 }
164 } 164 }
OLDNEW
« no previous file with comments | « chrome/browser/unload_browsertest.cc ('k') | chrome/browser/user_data_dir_extractor_win_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698