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 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1462 if (use_long_period) { | 1463 if (use_long_period) { |
1463 std::string long_name_("SessionRestore.SaveLongPeriod"); | 1464 std::string long_name_("SessionRestore.SaveLongPeriod"); |
1464 UMA_HISTOGRAM_CUSTOM_TIMES(long_name_, | 1465 UMA_HISTOGRAM_CUSTOM_TIMES(long_name_, |
1465 delta, | 1466 delta, |
1466 save_delay_in_mins_, | 1467 save_delay_in_mins_, |
1467 save_delay_in_hrs_, | 1468 save_delay_in_hrs_, |
1468 50); | 1469 50); |
1469 } | 1470 } |
1470 } | 1471 } |
1471 | 1472 |
OLD | NEW |