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

Side by Side Diff: chromecast/browser/pref_service_helper.cc

Issue 1553503002: Convert Pass()→std::move() in //chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chromecast/browser/pref_service_helper.h" 5 #include "chromecast/browser/pref_service_helper.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 base::Bind(&UserPrefsLoadError, &prefs_read_error)); 70 base::Bind(&UserPrefsLoadError, &prefs_read_error));
71 71
72 scoped_ptr<PrefService> pref_service(prefServiceFactory.Create(registry)); 72 scoped_ptr<PrefService> pref_service(prefServiceFactory.Create(registry));
73 if (prefs_read_error != PersistentPrefStore::PREF_READ_ERROR_NONE) { 73 if (prefs_read_error != PersistentPrefStore::PREF_READ_ERROR_NONE) {
74 LOG(ERROR) << "Cannot initialize chromecast config: " 74 LOG(ERROR) << "Cannot initialize chromecast config: "
75 << config_path.value() 75 << config_path.value()
76 << ", pref_error=" << prefs_read_error; 76 << ", pref_error=" << prefs_read_error;
77 } 77 }
78 78
79 OnPrefsLoaded(pref_service.get()); 79 OnPrefsLoaded(pref_service.get());
80 return pref_service.Pass(); 80 return pref_service;
81 } 81 }
82 82
83 } // namespace shell 83 } // namespace shell
84 } // namespace chromecast 84 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/metrics/cast_metrics_service_client.cc ('k') | chromecast/browser/url_request_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698