Index: chrome/browser/ui/webui/print_preview/sticky_settings.cc |
diff --git a/chrome/browser/ui/webui/print_preview/sticky_settings.cc b/chrome/browser/ui/webui/print_preview/sticky_settings.cc |
index adc121b3c4807bb77216fa3964fef4a5bcb6eede..a11ebbc1d2b7a83a046ca6182deb98eb6d4fb782 100644 |
--- a/chrome/browser/ui/webui/print_preview/sticky_settings.cc |
+++ b/chrome/browser/ui/webui/print_preview/sticky_settings.cc |
@@ -5,7 +5,6 @@ |
#include "chrome/browser/ui/webui/print_preview/sticky_settings.h" |
#include "base/command_line.h" |
-#include "base/files/file_path.h" |
#include "base/values.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/common/chrome_switches.h" |
@@ -16,7 +15,6 @@ |
namespace printing { |
-const char kSettingSavePath[] = "savePath"; |
const char kSettingAppState[] = "appState"; |
StickySettings::StickySettings() {} |
@@ -27,16 +25,10 @@ void StickySettings::StoreAppState(const std::string& data) { |
printer_app_state_.reset(new std::string(data)); |
} |
-void StickySettings::StoreSavePath(const base::FilePath& path) { |
- save_path_.reset(new base::FilePath(path)); |
-} |
- |
void StickySettings::SaveInPrefs(PrefService* prefs) { |
DCHECK(prefs); |
if (prefs) { |
std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue); |
- if (save_path_.get()) |
- value->SetString(printing::kSettingSavePath, save_path_->value()); |
if (printer_app_state_.get()) |
value->SetString(printing::kSettingAppState, |
*printer_app_state_); |
@@ -50,9 +42,6 @@ void StickySettings::RestoreFromPrefs(PrefService* prefs) { |
const base::DictionaryValue* value = |
prefs->GetDictionary(prefs::kPrintPreviewStickySettings); |
- base::FilePath::StringType save_path; |
- if (value->GetString(printing::kSettingSavePath, &save_path)) |
- save_path_.reset(new base::FilePath(save_path)); |
std::string buffer; |
if (value->GetString(printing::kSettingAppState, &buffer)) |
printer_app_state_.reset(new std::string(buffer)); |
@@ -68,8 +57,4 @@ std::string* StickySettings::printer_app_state() { |
return printer_app_state_.get(); |
} |
-base::FilePath* StickySettings::save_path() { |
- return save_path_.get(); |
-} |
- |
} // namespace printing |