OLD | NEW |
---|---|
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/ui/webui/options/extension_settings_handler.h" | 5 #include "chrome/browser/ui/webui/options/extension_settings_handler.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/base64.h" | 8 #include "base/base64.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
563 localized_strings->SetString("extensionSettingsCrashMessage", | 563 localized_strings->SetString("extensionSettingsCrashMessage", |
564 l10n_util::GetStringUTF16(IDS_EXTENSIONS_CRASHED_EXTENSION)); | 564 l10n_util::GetStringUTF16(IDS_EXTENSIONS_CRASHED_EXTENSION)); |
565 localized_strings->SetString("extensionSettingsInDevelopment", | 565 localized_strings->SetString("extensionSettingsInDevelopment", |
566 l10n_util::GetStringUTF16(IDS_EXTENSIONS_IN_DEVELOPMENT)); | 566 l10n_util::GetStringUTF16(IDS_EXTENSIONS_IN_DEVELOPMENT)); |
567 localized_strings->SetString("extensionSettingsWarningsTitle", | 567 localized_strings->SetString("extensionSettingsWarningsTitle", |
568 l10n_util::GetStringUTF16(IDS_EXTENSION_WARNINGS_TITLE)); | 568 l10n_util::GetStringUTF16(IDS_EXTENSION_WARNINGS_TITLE)); |
569 localized_strings->SetString("extensionSettingsShowDetails", | 569 localized_strings->SetString("extensionSettingsShowDetails", |
570 l10n_util::GetStringUTF16(IDS_EXTENSIONS_SHOW_DETAILS)); | 570 l10n_util::GetStringUTF16(IDS_EXTENSIONS_SHOW_DETAILS)); |
571 localized_strings->SetString("extensionSettingsHideDetails", | 571 localized_strings->SetString("extensionSettingsHideDetails", |
572 l10n_util::GetStringUTF16(IDS_EXTENSIONS_HIDE_DETAILS)); | 572 l10n_util::GetStringUTF16(IDS_EXTENSIONS_HIDE_DETAILS)); |
573 | |
574 // TODO(estade): comb through the above strings to find ones no longer used in | |
575 // uber extensions. | |
Dan Beam
2012/02/04 02:19:06
TODO?
Why not DO?
Evan Stade
2012/02/04 02:37:22
because this file is still being used by the old e
| |
576 localized_strings->SetString("extensionUninstall", | |
577 l10n_util::GetStringUTF16(IDS_EXTENSIONS_UNINSTALL)); | |
573 } | 578 } |
574 | 579 |
575 void ExtensionSettingsHandler::Initialize() { | 580 void ExtensionSettingsHandler::Initialize() { |
576 } | 581 } |
577 | 582 |
578 void ExtensionSettingsHandler::Observe( | 583 void ExtensionSettingsHandler::Observe( |
579 int type, | 584 int type, |
580 const content::NotificationSource& source, | 585 const content::NotificationSource& source, |
581 const content::NotificationDetails& details) { | 586 const content::NotificationDetails& details) { |
582 Profile* profile = Profile::FromWebUI(web_ui()); | 587 Profile* profile = Profile::FromWebUI(web_ui()); |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
766 chrome::VIEW_TYPE_EXTENSION_DIALOG == host_type) | 771 chrome::VIEW_TYPE_EXTENSION_DIALOG == host_type) |
767 continue; | 772 continue; |
768 | 773 |
769 GURL url = host->delegate()->GetURL(); | 774 GURL url = host->delegate()->GetURL(); |
770 content::RenderProcessHost* process = host->process(); | 775 content::RenderProcessHost* process = host->process(); |
771 result->push_back( | 776 result->push_back( |
772 ExtensionPage(url, process->GetID(), host->routing_id(), | 777 ExtensionPage(url, process->GetID(), host->routing_id(), |
773 process->GetBrowserContext()->IsOffTheRecord())); | 778 process->GetBrowserContext()->IsOffTheRecord())); |
774 } | 779 } |
775 } | 780 } |
OLD | NEW |