OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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/common/url_constants.h" | 5 #include "chrome/common/url_constants.h" |
6 | 6 |
7 #include "googleurl/src/url_util.h" | 7 #include "googleurl/src/url_util.h" |
8 | 8 |
9 namespace { | 9 namespace { |
10 const char* kSavableSchemes[] = { | 10 const char* kSavableSchemes[] = { |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 | 315 |
316 const char kSpeechInputAboutURL[] = | 316 const char kSpeechInputAboutURL[] = |
317 "https://www.google.com/support/chrome/bin/answer.py?answer=1407892"; | 317 "https://www.google.com/support/chrome/bin/answer.py?answer=1407892"; |
318 | 318 |
319 const char kLearnMoreRegisterProtocolHandlerURL[] = | 319 const char kLearnMoreRegisterProtocolHandlerURL[] = |
320 "http://www.google.com/support/chrome/bin/answer.py?answer=1382847"; | 320 "http://www.google.com/support/chrome/bin/answer.py?answer=1382847"; |
321 | 321 |
322 const char kSyncLearnMoreURL[] = | 322 const char kSyncLearnMoreURL[] = |
323 "http://www.google.com/support/chrome/bin/answer.py?answer=165139"; | 323 "http://www.google.com/support/chrome/bin/answer.py?answer=165139"; |
324 | 324 |
| 325 const char kSyncEverythingLearnMoreURL[] = |
| 326 "https://www.google.com/support/chrome/bin/answer.py?answer=185277"; |
| 327 |
325 #if defined(OS_CHROMEOS) | 328 #if defined(OS_CHROMEOS) |
326 const char kCloudPrintLearnMoreURL[] = | 329 const char kCloudPrintLearnMoreURL[] = |
327 "https://www.google.com/support/chromeos/bin/topic.py?topic=29023"; | 330 "https://www.google.com/support/chromeos/bin/topic.py?topic=29023"; |
328 #endif | 331 #endif |
329 | 332 |
| 333 const char kInvalidPasswordHelpURL[] = |
| 334 "http://www.google.com/support/accounts/bin/answer.py?ctx=ch&answer=27444"; |
| 335 |
| 336 const char kCanNotAccessAccountURL[] = |
| 337 "http://www.google.com/support/accounts/bin/answer.py?answer=48598"; |
| 338 |
| 339 const char kSyncEncryptionHelpURL[] = |
| 340 #if defined(OS_CHROMEOS) |
| 341 "http://www.google.com/support/chromeos/bin/answer.py?answer=1181035"; |
| 342 #else |
| 343 "http://www.google.com/support/chrome/bin/answer.py?answer=1181035"; |
| 344 #endif |
| 345 |
| 346 const char kSyncCreateNewAccountURL[] = |
| 347 "https://www.google.com/accounts/NewAccount?service=chromiumsync"; |
| 348 |
330 const char* const kChromeDebugURLs[] = { | 349 const char* const kChromeDebugURLs[] = { |
331 kChromeUICrashURL, | 350 kChromeUICrashURL, |
332 kChromeUIKillURL, | 351 kChromeUIKillURL, |
333 kChromeUIHangURL, | 352 kChromeUIHangURL, |
334 kChromeUIShorthangURL, | 353 kChromeUIShorthangURL, |
335 kChromeUIGpuCleanURL, | 354 kChromeUIGpuCleanURL, |
336 kChromeUIGpuCrashURL, | 355 kChromeUIGpuCrashURL, |
337 kChromeUIGpuHangURL, | 356 kChromeUIGpuHangURL, |
338 }; | 357 }; |
339 int kNumberOfChromeDebugURLs = static_cast<int>(arraysize(kChromeDebugURLs)); | 358 int kNumberOfChromeDebugURLs = static_cast<int>(arraysize(kChromeDebugURLs)); |
340 | 359 |
341 const char kExtensionScheme[] = "chrome-extension"; | 360 const char kExtensionScheme[] = "chrome-extension"; |
342 | 361 |
343 void RegisterChromeSchemes() { | 362 void RegisterChromeSchemes() { |
344 url_util::AddStandardScheme(kExtensionScheme); | 363 url_util::AddStandardScheme(kExtensionScheme); |
345 #if defined(OS_CHROMEOS) | 364 #if defined(OS_CHROMEOS) |
346 url_util::AddStandardScheme(kCrosScheme); | 365 url_util::AddStandardScheme(kCrosScheme); |
347 #endif | 366 #endif |
348 | 367 |
349 // This call will also lock the list of standard schemes. | 368 // This call will also lock the list of standard schemes. |
350 RegisterContentSchemes(kSavableSchemes); | 369 RegisterContentSchemes(kSavableSchemes); |
351 } | 370 } |
352 | 371 |
353 } // namespace chrome | 372 } // namespace chrome |
OLD | NEW |