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

Side by Side Diff: chrome/browser/google/google_util_chromeos.cc

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 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) 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 #include "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/prefs/pref_service.h"
10 #include "base/string_util.h" 11 #include "base/string_util.h"
11 #include "base/task_runner_util.h" 12 #include "base/task_runner_util.h"
12 #include "base/threading/worker_pool.h" 13 #include "base/threading/worker_pool.h"
13 #include "chrome/browser/browser_process.h" 14 #include "chrome/browser/browser_process.h"
14 #include "chrome/browser/prefs/pref_service.h"
15 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
16 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
17 17
18 namespace google_util { 18 namespace google_util {
19 namespace chromeos { 19 namespace chromeos {
20 20
21 namespace { 21 namespace {
22 22
23 // Path to file that stores the RLZ brand code on ChromeOS. 23 // Path to file that stores the RLZ brand code on ChromeOS.
24 const char kRLZBrandFilePath[] = 24 const char kRLZBrandFilePath[] =
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void SetBrandFromFile(const base::Closure& callback) { 65 void SetBrandFromFile(const base::Closure& callback) {
66 base::PostTaskAndReplyWithResult( 66 base::PostTaskAndReplyWithResult(
67 base::WorkerPool::GetTaskRunner(false /* task_is_slow */), 67 base::WorkerPool::GetTaskRunner(false /* task_is_slow */),
68 FROM_HERE, 68 FROM_HERE,
69 base::Bind(&ReadBrandFromFile), 69 base::Bind(&ReadBrandFromFile),
70 base::Bind(&SetBrand, callback)); 70 base::Bind(&SetBrand, callback));
71 } 71 }
72 72
73 } // namespace chromeos 73 } // namespace chromeos
74 } // namespace google_util 74 } // namespace google_util
OLDNEW
« no previous file with comments | « chrome/browser/google/google_url_tracker_unittest.cc ('k') | chrome/browser/gpu/gl_string_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698