Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / net / base / net_module.cc
blobd7f19189b45f2194292eb3f5b7885cd9f064d87a
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "net/base/net_module.h"
7 namespace net {
9 static NetModule::ResourceProvider resource_provider;
11 // static
12 void NetModule::SetResourceProvider(ResourceProvider func) {
13 resource_provider = func;
16 // static
17 base::StringPiece NetModule::GetResource(int key) {
18 return resource_provider ? resource_provider(key) : base::StringPiece();
21 } // namespace net