| OLD | NEW |
| 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/profile_resetter/automatic_profile_resetter_mementos.h" | 5 #include "chrome/browser/profile_resetter/automatic_profile_resetter_mementos.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/file_util.h" | |
| 10 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/files/file_util.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
| 13 #include "base/prefs/scoped_user_pref_update.h" | 13 #include "base/prefs/scoped_user_pref_update.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/common/chrome_constants.h" | 17 #include "chrome/common/chrome_constants.h" |
| 18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
| 19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
| 20 | 20 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 const base::FilePath& memento_file_path, | 120 const base::FilePath& memento_file_path, |
| 121 const std::string& value) { | 121 const std::string& value) { |
| 122 int retval = | 122 int retval = |
| 123 base::WriteFile(memento_file_path, value.c_str(), value.size()); | 123 base::WriteFile(memento_file_path, value.c_str(), value.size()); |
| 124 DCHECK_EQ(retval, (int)value.size()); | 124 DCHECK_EQ(retval, (int)value.size()); |
| 125 } | 125 } |
| 126 | 126 |
| 127 base::FilePath FileHostedPromptMemento::GetMementoFilePath() const { | 127 base::FilePath FileHostedPromptMemento::GetMementoFilePath() const { |
| 128 return profile_->GetPath().Append(chrome::kResetPromptMementoFilename); | 128 return profile_->GetPath().Append(chrome::kResetPromptMementoFilename); |
| 129 } | 129 } |
| OLD | NEW |