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

Side by Side Diff: chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc

Issue 24649002: Clean up a few more unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thestig comment Created 7 years, 2 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/extensions/api/sync_file_system/sync_file_system_api.h" 5 #include "chrome/browser/extensions/api/sync_file_system/sync_file_system_api.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 24 matching lines...) Expand all
35 using sync_file_system::SyncFileStatus; 35 using sync_file_system::SyncFileStatus;
36 using sync_file_system::SyncFileSystemServiceFactory; 36 using sync_file_system::SyncFileSystemServiceFactory;
37 using sync_file_system::SyncStatusCode; 37 using sync_file_system::SyncStatusCode;
38 38
39 namespace extensions { 39 namespace extensions {
40 40
41 namespace { 41 namespace {
42 42
43 // Error messages. 43 // Error messages.
44 const char kFileError[] = "File error %d."; 44 const char kFileError[] = "File error %d.";
45 const char kQuotaError[] = "Quota error %d.";
46 const char kUnsupportedConflictResolutionPolicy[] = 45 const char kUnsupportedConflictResolutionPolicy[] =
47 "Policy %s is not supported."; 46 "Policy %s is not supported.";
48 47
49 sync_file_system::SyncFileSystemService* GetSyncFileSystemService( 48 sync_file_system::SyncFileSystemService* GetSyncFileSystemService(
50 Profile* profile) { 49 Profile* profile) {
51 sync_file_system::SyncFileSystemService* service = 50 sync_file_system::SyncFileSystemService* service =
52 SyncFileSystemServiceFactory::GetForProfile(profile); 51 SyncFileSystemServiceFactory::GetForProfile(profile);
53 DCHECK(service); 52 DCHECK(service);
54 ExtensionSyncEventObserver* observer = 53 ExtensionSyncEventObserver* observer =
55 ExtensionSyncEventObserverFactory::GetForProfile(profile); 54 ExtensionSyncEventObserverFactory::GetForProfile(profile);
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 371
373 bool SyncFileSystemGetServiceStatusFunction::RunImpl() { 372 bool SyncFileSystemGetServiceStatusFunction::RunImpl() {
374 sync_file_system::SyncFileSystemService* service = GetSyncFileSystemService( 373 sync_file_system::SyncFileSystemService* service = GetSyncFileSystemService(
375 profile()); 374 profile());
376 results_ = api::sync_file_system::GetServiceStatus::Results::Create( 375 results_ = api::sync_file_system::GetServiceStatus::Results::Create(
377 SyncServiceStateToExtensionEnum(service->GetSyncServiceState())); 376 SyncServiceStateToExtensionEnum(service->GetSyncServiceState()));
378 return true; 377 return true;
379 } 378 }
380 379
381 } // namespace extensions 380 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698