Supervised user interstitial: Remove image URL resolving hack.
[chromium-blink-merge.git] / google_apis / drive / request_util.cc
blob9737a6f90d53555c59011048fdfe6b0398991024
1 // Copyright (c) 2013 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 "google_apis/drive/request_util.h"
7 #include <string>
9 namespace google_apis {
10 namespace util {
12 namespace {
14 // etag matching header.
15 const char kIfMatchHeaderPrefix[] = "If-Match: ";
17 } // namespace
19 const char kIfMatchAllHeader[] = "If-Match: *";
21 std::string GenerateIfMatchHeader(const std::string& etag) {
22 return etag.empty() ? kIfMatchAllHeader : (kIfMatchHeaderPrefix + etag);
25 } // namespace util
26 } // namespace google_apis