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

Side by Side Diff: android_webview/browser/aw_browser_policy_connector.cc

Issue 1552723002: Convert Pass()→std::move() in //android_webview (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 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 "android_webview/browser/aw_browser_policy_connector.h" 5 #include "android_webview/browser/aw_browser_policy_connector.h"
6 6
7 #include "android_webview/browser/aw_browser_context.h" 7 #include "android_webview/browser/aw_browser_context.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "components/policy/core/browser/android/android_combined_policy_provide r.h" 9 #include "components/policy/core/browser/android/android_combined_policy_provide r.h"
10 #include "components/policy/core/browser/configuration_policy_handler_list.h" 10 #include "components/policy/core/browser/configuration_policy_handler_list.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 make_scoped_ptr(new policy::URLBlacklistPolicyHandler())); 43 make_scoped_ptr(new policy::URLBlacklistPolicyHandler()));
44 44
45 // HTTP Negotiate authentication 45 // HTTP Negotiate authentication
46 handlers->AddHandler(make_scoped_ptr(new policy::SimplePolicyHandler( 46 handlers->AddHandler(make_scoped_ptr(new policy::SimplePolicyHandler(
47 policy::key::kAuthServerWhitelist, prefs::kAuthServerWhitelist, 47 policy::key::kAuthServerWhitelist, prefs::kAuthServerWhitelist,
48 base::Value::TYPE_STRING))); 48 base::Value::TYPE_STRING)));
49 handlers->AddHandler(make_scoped_ptr(new policy::SimplePolicyHandler( 49 handlers->AddHandler(make_scoped_ptr(new policy::SimplePolicyHandler(
50 policy::key::kAuthAndroidNegotiateAccountType, 50 policy::key::kAuthAndroidNegotiateAccountType,
51 prefs::kAuthAndroidNegotiateAccountType, base::Value::TYPE_STRING))); 51 prefs::kAuthAndroidNegotiateAccountType, base::Value::TYPE_STRING)));
52 52
53 return handlers.Pass(); 53 return handlers;
54 } 54 }
55 55
56 } // namespace 56 } // namespace
57 57
58 AwBrowserPolicyConnector::AwBrowserPolicyConnector() 58 AwBrowserPolicyConnector::AwBrowserPolicyConnector()
59 : BrowserPolicyConnectorBase(base::Bind(&BuildHandlerList)) { 59 : BrowserPolicyConnectorBase(base::Bind(&BuildHandlerList)) {
60 SetPlatformPolicyProvider(make_scoped_ptr( 60 SetPlatformPolicyProvider(make_scoped_ptr(
61 new policy::android::AndroidCombinedPolicyProvider(GetSchemaRegistry()))); 61 new policy::android::AndroidCombinedPolicyProvider(GetSchemaRegistry())));
62 InitPolicyProviders(); 62 InitPolicyProviders();
63 } 63 }
64 64
65 AwBrowserPolicyConnector::~AwBrowserPolicyConnector() {} 65 AwBrowserPolicyConnector::~AwBrowserPolicyConnector() {}
66 66
67 } // namespace android_webview 67 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_browser_context.cc ('k') | android_webview/browser/aw_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698