OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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. |
| 4 |
| 5 #include "chrome/browser/sync/util/oauth.h" |
| 6 |
| 7 #include "base/command_line.h" |
| 8 #include "chrome/common/chrome_switches.h" |
| 9 #include "chrome/common/net/gaia/gaia_constants.h" |
| 10 |
| 11 namespace browser_sync { |
| 12 |
| 13 bool IsUsingOAuth() { |
| 14 return CommandLine::ForCurrentProcess()->HasSwitch( |
| 15 switches::kEnableSyncOAuth); |
| 16 } |
| 17 |
| 18 const char* SyncServiceName() { |
| 19 return IsUsingOAuth() ? |
| 20 GaiaConstants::kSyncServiceOAuth : |
| 21 GaiaConstants::kSyncService; |
| 22 } |
| 23 |
| 24 } // namespace browser_sync |
OLD | NEW |