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

Side by Side Diff: chrome/browser/ui/webui/print_preview/sticky_settings.h

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_ 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/memory/scoped_ptr.h"
11 #include "printing/print_job_constants.h" 11 #include "printing/print_job_constants.h"
12 12
13 class PrefService; 13 class PrefService;
14 14
15 namespace base { 15 namespace base {
16 class DictionaryValue; 16 class DictionaryValue;
17 class FilePath; 17 class FilePath;
18 } 18 }
19 19
20 namespace user_prefs { 20 namespace user_prefs {
(...skipping 16 matching lines...) Expand all
37 // Stores app state for the last used printer. 37 // Stores app state for the last used printer.
38 void StoreAppState(const std::string& app_state); 38 void StoreAppState(const std::string& app_state);
39 // Stores the last path the user used to save to pdf. 39 // Stores the last path the user used to save to pdf.
40 void StoreSavePath(const base::FilePath& path); 40 void StoreSavePath(const base::FilePath& path);
41 41
42 void SaveInPrefs(PrefService* profile); 42 void SaveInPrefs(PrefService* profile);
43 void RestoreFromPrefs(PrefService* profile); 43 void RestoreFromPrefs(PrefService* profile);
44 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 44 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
45 45
46 private: 46 private:
47 scoped_ptr<base::FilePath> save_path_; 47 std::unique_ptr<base::FilePath> save_path_;
48 scoped_ptr<std::string> printer_app_state_; 48 std::unique_ptr<std::string> printer_app_state_;
49 }; 49 };
50 50
51 } // namespace printing 51 } // namespace printing
52 52
53 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_ 53 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview/printer_handler.cc ('k') | chrome/browser/ui/webui/print_preview/sticky_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698