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

Side by Side Diff: ios/chrome/browser/bookmarks/bookmark_client_factory.cc

Issue 1586833002: Convert Pass()→std::move() for iOS build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert accidental //base change 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/bookmarks/bookmark_client_factory.h" 5 #include "ios/chrome/browser/bookmarks/bookmark_client_factory.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "components/keyed_service/core/service_access_type.h" 8 #include "components/keyed_service/core/service_access_type.h"
9 #include "components/keyed_service/ios/browser_state_dependency_manager.h" 9 #include "components/keyed_service/ios/browser_state_dependency_manager.h"
10 #include "ios/chrome/browser/bookmarks/bookmark_client_impl.h" 10 #include "ios/chrome/browser/bookmarks/bookmark_client_impl.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 BookmarkClientFactory::BookmarkClientFactory() 42 BookmarkClientFactory::BookmarkClientFactory()
43 : BrowserStateKeyedServiceFactory( 43 : BrowserStateKeyedServiceFactory(
44 "BookmarkClient", 44 "BookmarkClient",
45 BrowserStateDependencyManager::GetInstance()) { 45 BrowserStateDependencyManager::GetInstance()) {
46 } 46 }
47 47
48 BookmarkClientFactory::~BookmarkClientFactory() {} 48 BookmarkClientFactory::~BookmarkClientFactory() {}
49 49
50 scoped_ptr<KeyedService> BookmarkClientFactory::BuildServiceInstanceFor( 50 scoped_ptr<KeyedService> BookmarkClientFactory::BuildServiceInstanceFor(
51 web::BrowserState* context) const { 51 web::BrowserState* context) const {
52 return BuildBookmarkClientImpl(context).Pass(); 52 return BuildBookmarkClientImpl(context);
53 } 53 }
54 54
55 web::BrowserState* BookmarkClientFactory::GetBrowserStateToUse( 55 web::BrowserState* BookmarkClientFactory::GetBrowserStateToUse(
56 web::BrowserState* context) const { 56 web::BrowserState* context) const {
57 return GetBrowserStateRedirectedInIncognito(context); 57 return GetBrowserStateRedirectedInIncognito(context);
58 } 58 }
59 59
60 bool BookmarkClientFactory::ServiceIsNULLWhileTesting() const { 60 bool BookmarkClientFactory::ServiceIsNULLWhileTesting() const {
61 return true; 61 return true;
62 } 62 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/autofill/personal_data_manager_factory.cc ('k') | ios/chrome/browser/bookmarks/bookmark_model_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698