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

Unified Diff: chrome/browser/download/download_prefs.h

Issue 10815024: Revert 147594 - NaCl: Remove two uses of '#include "nacl/nacl_log.h"' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/download/download_browsertest.cc ('k') | chrome/browser/download/download_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_prefs.h
===================================================================
--- chrome/browser/download/download_prefs.h (revision 147600)
+++ chrome/browser/download/download_prefs.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -10,7 +10,7 @@
#include "base/file_path.h"
#include "chrome/browser/prefs/pref_member.h"
-class PrefService;
+class Profile;
namespace content {
class BrowserContext;
@@ -20,7 +20,7 @@
// Stores all download-related preferences.
class DownloadPrefs {
public:
- explicit DownloadPrefs(PrefService* prefs);
+ explicit DownloadPrefs(Profile* profile);
~DownloadPrefs();
static void RegisterUserPrefs(PrefService* prefs);
@@ -32,7 +32,7 @@
static DownloadPrefs* FromBrowserContext(
content::BrowserContext* browser_context);
- FilePath download_path() const { return *download_path_; }
+ FilePath DownloadPath() const;
int save_file_type() const { return *save_file_type_; }
// Returns true if the prompt_for_download preference has been set and the
@@ -62,7 +62,7 @@
private:
void SaveAutoOpenState();
- PrefService* prefs_;
+ Profile* profile_;
BooleanPrefMember prompt_for_download_;
FilePathPrefMember download_path_;
« no previous file with comments | « chrome/browser/download/download_browsertest.cc ('k') | chrome/browser/download/download_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698