OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "components/sessions/session_backend.h" | 5 #include "components/sessions/core/session_backend.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/files/file.h" | 9 #include "base/files/file.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #include "base/threading/thread_restrictions.h" | 13 #include "base/threading/thread_restrictions.h" |
14 | 14 |
15 using base::TimeTicks; | 15 using base::TimeTicks; |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 base::FilePath SessionBackend::GetCurrentSessionPath() { | 398 base::FilePath SessionBackend::GetCurrentSessionPath() { |
399 base::FilePath path = path_to_dir_; | 399 base::FilePath path = path_to_dir_; |
400 if (type_ == sessions::BaseSessionService::TAB_RESTORE) | 400 if (type_ == sessions::BaseSessionService::TAB_RESTORE) |
401 path = path.AppendASCII(kCurrentTabSessionFileName); | 401 path = path.AppendASCII(kCurrentTabSessionFileName); |
402 else | 402 else |
403 path = path.AppendASCII(kCurrentSessionFileName); | 403 path = path.AppendASCII(kCurrentSessionFileName); |
404 return path; | 404 return path; |
405 } | 405 } |
406 | 406 |
407 } // namespace sessions | 407 } // namespace sessions |
OLD | NEW |