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

Unified Diff: chrome/browser/chromeos/preferences_unittest.cc

Issue 13892002: Apply the namespace migration for "selectfile.last_directory" user-pref as well. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unittest Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/preferences_unittest.cc
diff --git a/chrome/browser/chromeos/preferences_unittest.cc b/chrome/browser/chromeos/preferences_unittest.cc
index 492e644abac90894305b499ced83b484b6bdfba9..53d036c23532060014a3073054f21a811e83e1fa 100644
--- a/chrome/browser/chromeos/preferences_unittest.cc
+++ b/chrome/browser/chromeos/preferences_unittest.cc
@@ -9,6 +9,7 @@
#include "chrome/browser/download/download_prefs.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/testing_pref_service_syncable.h"
+#include "components/user_prefs/pref_registry_syncable.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace chromeos {
@@ -57,6 +58,11 @@ TEST(PreferencesTest, TestUpdatePrefOnBrowserScreenDetails) {
TestingPrefServiceSyncable prefs;
Preferences::RegisterUserPrefs(prefs.registry());
DownloadPrefs::RegisterUserPrefs(prefs.registry());
+ // kSelectFileLastDirectory is registered for Profile. Here we register it for
+ // testing.
+ prefs.registry()->RegisterStringPref(prefs::kSelectFileLastDirectory,
+ std::string(),
+ PrefRegistrySyncable::UNSYNCABLE_PREF);
StringPrefMember previous;
previous.Init(prefs::kLanguagePreviousInputMethod, &prefs);
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698