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

Unified Diff: chrome/browser/prefs/chrome_pref_service_factory.cc

Issue 2419733005: Extract a base class from CommandLinePrefStore (Closed)
Patch Set: nit in comment Created 4 years, 2 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
Index: chrome/browser/prefs/chrome_pref_service_factory.cc
diff --git a/chrome/browser/prefs/chrome_pref_service_factory.cc b/chrome/browser/prefs/chrome_pref_service_factory.cc
index dca3ba2df413026b1a73bd75336b01cb41b82f26..b8f36c9b369ff646d69341126f9988e5b6edcf72 100644
--- a/chrome/browser/prefs/chrome_pref_service_factory.cc
+++ b/chrome/browser/prefs/chrome_pref_service_factory.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <chrome/browser/prefs/chrome_command_line_pref_store.h>
#include "chrome/browser/prefs/chrome_pref_service_factory.h"
#include <stddef.h>
@@ -22,7 +23,6 @@
#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/prefs/chrome_pref_model_associator_client.h"
-#include "chrome/browser/prefs/command_line_pref_store.h"
#include "chrome/browser/prefs/profile_pref_store_manager.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/glue/sync_start_util.h"
@@ -440,7 +440,7 @@ void PrepareFactory(syncable_prefs::PrefServiceSyncableFactory* factory,
factory->set_async(async);
factory->set_extension_prefs(extension_prefs);
factory->set_command_line_prefs(make_scoped_refptr(
- new CommandLinePrefStore(base::CommandLine::ForCurrentProcess())));
+ new ChromeCommandLinePrefStore(base::CommandLine::ForCurrentProcess())));
factory->set_read_error_callback(base::Bind(&HandleReadError, pref_filename));
factory->set_user_prefs(user_pref_store);
factory->SetPrefModelAssociatorClient(
« no previous file with comments | « chrome/browser/prefs/chrome_command_line_pref_store_unittest.cc ('k') | chrome/browser/prefs/chrome_pref_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698