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

Side by Side Diff: chrome/browser/renderer_host/pepper/device_id_fetcher.cc

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/renderer_host/pepper/device_id_fetcher.h" 5 #include "chrome/browser/renderer_host/pepper/device_id_fetcher.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 in_progress_ = true; 56 in_progress_ = true;
57 callback_ = callback; 57 callback_ = callback;
58 58
59 BrowserThread::PostTask( 59 BrowserThread::PostTask(
60 BrowserThread::UI, FROM_HERE, 60 BrowserThread::UI, FROM_HERE,
61 base::Bind(&DeviceIDFetcher::CheckPrefsOnUIThread, this)); 61 base::Bind(&DeviceIDFetcher::CheckPrefsOnUIThread, this));
62 return true; 62 return true;
63 } 63 }
64 64
65 // static 65 // static
66 void DeviceIDFetcher::RegisterUserPrefs( 66 void DeviceIDFetcher::RegisterProfilePrefs(
67 user_prefs::PrefRegistrySyncable* prefs) { 67 user_prefs::PrefRegistrySyncable* prefs) {
68 // TODO(wad): Once UI is connected, a final default can be set. At that point 68 // TODO(wad): Once UI is connected, a final default can be set. At that point
69 // change this pref from UNSYNCABLE to SYNCABLE. 69 // change this pref from UNSYNCABLE to SYNCABLE.
70 prefs->RegisterBooleanPref(prefs::kEnableDRM, 70 prefs->RegisterBooleanPref(prefs::kEnableDRM,
71 true, 71 true,
72 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 72 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
73 prefs->RegisterStringPref( 73 prefs->RegisterStringPref(
74 prefs::kDRMSalt, 74 prefs::kDRMSalt,
75 "", 75 "",
76 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 76 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 chromeos::CryptohomeLibrary* c_home = chromeos::CryptohomeLibrary::Get(); 200 chromeos::CryptohomeLibrary* c_home = chromeos::CryptohomeLibrary::Get();
201 return c_home->GetSystemSalt(); 201 return c_home->GetSystemSalt();
202 #else 202 #else
203 // Not implemented for other platforms. 203 // Not implemented for other platforms.
204 NOTREACHED(); 204 NOTREACHED();
205 return ""; 205 return "";
206 #endif 206 #endif
207 } 207 }
208 208
209 } // namespace chrome 209 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/pepper/device_id_fetcher.h ('k') | chrome/browser/search_engines/template_url_prepopulate_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698