OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #include "chrome/browser/sessions/session_service.h" | 7 #include "chrome/browser/sessions/session_service.h" |
8 | 8 |
9 #include <limits> | 9 #include <limits> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/histogram.h" |
13 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
14 #include "base/pickle.h" | 15 #include "base/pickle.h" |
15 #include "base/scoped_vector.h" | 16 #include "base/scoped_vector.h" |
16 #include "base/thread.h" | 17 #include "base/thread.h" |
17 #include "chrome/browser/browser_init.h" | 18 #include "chrome/browser/browser_init.h" |
18 #include "chrome/browser/browser_list.h" | 19 #include "chrome/browser/browser_list.h" |
19 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
20 #include "chrome/browser/browser_window.h" | 21 #include "chrome/browser/browser_window.h" |
21 #include "chrome/browser/defaults.h" | 22 #include "chrome/browser/defaults.h" |
22 #include "chrome/browser/profile.h" | 23 #include "chrome/browser/profile.h" |
(...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1340 UMA_HISTOGRAM_CUSTOM_TIMES("SessionRestore.LongSavePeriod", | 1341 UMA_HISTOGRAM_CUSTOM_TIMES("SessionRestore.LongSavePeriod", |
1341 delta, | 1342 delta, |
1342 base::TimeDelta::FromMinutes(10), | 1343 base::TimeDelta::FromMinutes(10), |
1343 base::TimeDelta::FromHours(8), | 1344 base::TimeDelta::FromHours(8), |
1344 50); | 1345 50); |
1345 } | 1346 } |
1346 } | 1347 } |
1347 | 1348 |
1348 last_save_time_ = base::TimeTicks::Now(); | 1349 last_save_time_ = base::TimeTicks::Now(); |
1349 } | 1350 } |
OLD | NEW |