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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc

Issue 1144193005: Fix a lot of support links. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bug 490887 Created 5 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/extensions/file_manager/private_api_strings.h" 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_strings.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/sys_info.h" 8 #include "base/sys_info.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/chromeos/file_manager/open_with_browser.h" 10 #include "chrome/browser/chromeos/file_manager/open_with_browser.h"
11 #include "chrome/grit/generated_resources.h" 11 #include "chrome/grit/generated_resources.h"
12 #include "chromeos/system/statistics_provider.h" 12 #include "chromeos/system/statistics_provider.h"
13 #include "extensions/common/extension_l10n_util.h" 13 #include "extensions/common/extension_l10n_util.h"
14 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
15 #include "ui/base/webui/web_ui_util.h" 15 #include "ui/base/webui/web_ui_util.h"
16 #include "ui/strings/grit/app_locale_settings.h" 16 #include "ui/strings/grit/app_locale_settings.h"
17 17
18 namespace { 18 namespace {
19 19
20 // Location of the page to buy more storage for Google Drive. 20 // Location of the page to buy more storage for Google Drive.
21 const char kGoogleDriveBuyStorageUrl[] = 21 const char kGoogleDriveBuyStorageUrl[] =
22 "https://www.google.com/settings/storage"; 22 "https://www.google.com/settings/storage";
23 23
24 // Location of the overview page about Google Drive. 24 // Location of the overview page about Google Drive.
25 const char kGoogleDriveOverviewUrl[] = 25 const char kGoogleDriveOverviewUrl[] =
26 "https://support.google.com/chromeos/?p=filemanager_drive"; 26 "https://support.google.com/chromebook/?p=filemanager_drive";
27 27
28 // Location of Google drive redeem page. 28 // Location of Google drive redeem page.
29 const char kGoogleDriveRedeemUrl[] = 29 const char kGoogleDriveRedeemUrl[] =
30 "http://www.google.com/intl/en/chrome/devices/goodies.html" 30 "http://www.google.com/intl/en/chrome/devices/goodies.html"
31 "?utm_source=filesapp&utm_medium=banner&utm_campaign=gsg"; 31 "?utm_source=filesapp&utm_medium=banner&utm_campaign=gsg";
32 32
33 // Location of Google Drive specific help. 33 // Location of Google Drive specific help.
34 const char kGoogleDriveHelpUrl[] = 34 const char kGoogleDriveHelpUrl[] =
35 "https://support.google.com/chromeos/?p=filemanager_drivehelp"; 35 "https://support.google.com/chromebook/?p=filemanager_drivehelp";
36 36
37 // Location of Google Drive root. 37 // Location of Google Drive root.
38 const char kGoogleDriveRootUrl[] = "https://drive.google.com"; 38 const char kGoogleDriveRootUrl[] = "https://drive.google.com";
39 39
40 // Printf format 40 // Printf format
41 const char kHelpURLFormat[] = "https://support.google.com/chromebook/answer/%d"; 41 const char kHelpURLFormat[] = "https://support.google.com/chromebook/answer/%d";
42 42
43 // Location of the help page for low space warning in the downloads directory. 43 // Location of the help page for low space warning in the downloads directory.
44 const int kDownloadsLowSpaceWarningHelpNumber = 1061547; 44 const int kDownloadsLowSpaceWarningHelpNumber = 1061547;
45 45
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber)); 598 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber));
599 dict->SetString("UI_LOCALE", extension_l10n_util::CurrentLocaleOrDefault()); 599 dict->SetString("UI_LOCALE", extension_l10n_util::CurrentLocaleOrDefault());
600 600
601 const std::string& app_locale = g_browser_process->GetApplicationLocale(); 601 const std::string& app_locale = g_browser_process->GetApplicationLocale();
602 webui::SetLoadTimeDataDefaults(app_locale, dict); 602 webui::SetLoadTimeDataDefaults(app_locale, dict);
603 603
604 return true; 604 return true;
605 } 605 }
606 606
607 } // namespace extensions 607 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698