| 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/browser/extensions/extensions_ui.h" | 5 #include "chrome/browser/extensions/extensions_ui.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 750 continue; | 750 continue; |
| 751 | 751 |
| 752 GURL url = host->delegate()->GetURL(); | 752 GURL url = host->delegate()->GetURL(); |
| 753 if (url.SchemeIs(chrome::kExtensionScheme)) { | 753 if (url.SchemeIs(chrome::kExtensionScheme)) { |
| 754 if (url.host() != extension->id()) | 754 if (url.host() != extension->id()) |
| 755 continue; | 755 continue; |
| 756 } else if (!extension->web_extent().MatchesURL(url)) { | 756 } else if (!extension->web_extent().MatchesURL(url)) { |
| 757 continue; | 757 continue; |
| 758 } | 758 } |
| 759 | 759 |
| 760 result->push_back(ExtensionPage(url, process->id(), host->routing_id(), | 760 result->push_back( |
| 761 process->profile()->IsOffTheRecord())); | 761 ExtensionPage(url, process->id(), host->routing_id(), |
| 762 process->browser_context()->IsOffTheRecord())); |
| 762 } | 763 } |
| 763 } | 764 } |
| 764 | 765 |
| 765 ExtensionsDOMHandler::~ExtensionsDOMHandler() { | 766 ExtensionsDOMHandler::~ExtensionsDOMHandler() { |
| 766 // There may be pending file dialogs, we need to tell them that we've gone | 767 // There may be pending file dialogs, we need to tell them that we've gone |
| 767 // away so they don't try and call back to us. | 768 // away so they don't try and call back to us. |
| 768 if (load_extension_dialog_.get()) | 769 if (load_extension_dialog_.get()) |
| 769 load_extension_dialog_->ListenerDestroyed(); | 770 load_extension_dialog_->ListenerDestroyed(); |
| 770 | 771 |
| 771 if (pack_job_.get()) | 772 if (pack_job_.get()) |
| (...skipping 22 matching lines...) Expand all Loading... |
| 794 return ResourceBundle::GetSharedInstance(). | 795 return ResourceBundle::GetSharedInstance(). |
| 795 LoadDataResourceBytes(IDR_PLUGIN); | 796 LoadDataResourceBytes(IDR_PLUGIN); |
| 796 } | 797 } |
| 797 | 798 |
| 798 // static | 799 // static |
| 799 void ExtensionsUI::RegisterUserPrefs(PrefService* prefs) { | 800 void ExtensionsUI::RegisterUserPrefs(PrefService* prefs) { |
| 800 prefs->RegisterBooleanPref(prefs::kExtensionsUIDeveloperMode, | 801 prefs->RegisterBooleanPref(prefs::kExtensionsUIDeveloperMode, |
| 801 false, | 802 false, |
| 802 PrefService::SYNCABLE_PREF); | 803 PrefService::SYNCABLE_PREF); |
| 803 } | 804 } |
| OLD | NEW |