Hide the sign-in/out button in about:settings for supervised users.
[chromium-blink-merge.git] / google_apis / drive / gdata_wapi_requests.cc
blob4259217207565906496c19f1e3946354617c4c42
1 // Copyright (c) 2012 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/gdata_wapi_requests.h"
7 #include "google_apis/drive/gdata_wapi_url_generator.h"
9 namespace google_apis {
11 //============================ GetResourceEntryRequest =======================
13 GetResourceEntryRequest::GetResourceEntryRequest(
14 RequestSender* sender,
15 const GDataWapiUrlGenerator& url_generator,
16 const std::string& resource_id,
17 const GURL& embed_origin,
18 const GetDataCallback& callback)
19 : GetDataRequest(sender, callback),
20 url_generator_(url_generator),
21 resource_id_(resource_id),
22 embed_origin_(embed_origin) {
23 DCHECK(!callback.is_null());
26 GetResourceEntryRequest::~GetResourceEntryRequest() {}
28 GURL GetResourceEntryRequest::GetURL() const {
29 return url_generator_.GenerateEditUrlWithEmbedOrigin(
30 resource_id_, embed_origin_);
33 } // namespace google_apis