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

Side by Side Diff: chrome/browser/profile_resetter/automatic_profile_resetter_mementos.cc

Issue 587823003: Cleanup: Remove base/file_util.h. Convert remaining references. (try 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698