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

Side by Side Diff: chrome/browser/chromeos/gdata/drive_api_operations.cc

Issue 10831122: gdata cleanup: stop passing Profile* around GData operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 "chrome/browser/chromeos/gdata/drive_api_operations.h" 5 #include "chrome/browser/chromeos/gdata/drive_api_operations.h"
6 6
7 namespace { 7 namespace {
8 8
9 const char kDriveV2AboutURL[] = "https://www.googleapis.com/drive/v2/about"; 9 const char kDriveV2AboutURL[] = "https://www.googleapis.com/drive/v2/about";
10 const char kDriveV2ApplistURL[] = "https://www.googleapis.com/drive/v2/apps"; 10 const char kDriveV2ApplistURL[] = "https://www.googleapis.com/drive/v2/apps";
11 11
12 } // namespace 12 } // namespace
13 13
14 // TODO(kochi): Rename to namespace drive. http://crbug.com/136371 14 // TODO(kochi): Rename to namespace drive. http://crbug.com/136371
15 namespace gdata { 15 namespace gdata {
16 16
17 //============================== GetAboutOperation ============================= 17 //============================== GetAboutOperation =============================
18 18
19 GetAboutOperation::GetAboutOperation( 19 GetAboutOperation::GetAboutOperation(GDataOperationRegistry* registry,
20 GDataOperationRegistry* registry, 20 const GetDataCallback& callback)
21 Profile* profile, 21 : GetDataOperation(registry, callback) {}
22 const GetDataCallback& callback)
23 : GetDataOperation(registry, profile, callback) {}
24 22
25 GetAboutOperation::~GetAboutOperation() {} 23 GetAboutOperation::~GetAboutOperation() {}
26 24
27 GURL GetAboutOperation::GetURL() const { 25 GURL GetAboutOperation::GetURL() const {
28 return GURL(kDriveV2AboutURL); 26 return GURL(kDriveV2AboutURL);
29 } 27 }
30 28
31 //============================== GetApplistOperation =========================== 29 //============================== GetApplistOperation ===========================
32 30
33 GetApplistOperation::GetApplistOperation( 31 GetApplistOperation::GetApplistOperation(GDataOperationRegistry* registry,
34 GDataOperationRegistry* registry, 32 const GetDataCallback& callback)
35 Profile* profile, 33 : GetDataOperation(registry, callback) {}
36 const GetDataCallback& callback)
37 : GetDataOperation(registry, profile, callback) {}
38 34
39 GetApplistOperation::~GetApplistOperation() {} 35 GetApplistOperation::~GetApplistOperation() {}
40 36
41 GURL GetApplistOperation::GetURL() const { 37 GURL GetApplistOperation::GetURL() const {
42 return GURL(kDriveV2ApplistURL); 38 return GURL(kDriveV2ApplistURL);
43 } 39 }
44 40
45 } // namespace gdata 41 } // namespace gdata
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/drive_api_operations.h ('k') | chrome/browser/chromeos/gdata/gdata_auth_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698