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

Unified Diff: chrome/browser/extensions/extension_process_manager.cc

Issue 11726002: Move the parsing of 'update_url' & 'options_page' URLs out of Extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@url_parse
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_process_manager.cc
diff --git a/chrome/browser/extensions/extension_process_manager.cc b/chrome/browser/extensions/extension_process_manager.cc
index dc54dca25efd8a2b01bc50accc365c86d24dc423..2b161266f282fe6e61847a64d7b95aa5c89a19a0 100644
--- a/chrome/browser/extensions/extension_process_manager.cc
+++ b/chrome/browser/extensions/extension_process_manager.cc
@@ -27,6 +27,7 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_messages.h"
+#include "chrome/common/extensions/manifest_url_info.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_service.h"
@@ -310,7 +311,7 @@ void ExtensionProcessManager::CreateBackgroundHost(
void ExtensionProcessManager::OpenOptionsPage(const Extension* extension,
Yoyo Zhou 2013/01/03 23:16:00 While you're here, can you add a TODO in the .h fi
Joe Thomas 2013/01/04 01:36:27 Done.
Browser* browser) {
- DCHECK(!extension->options_url().is_empty());
+ DCHECK(!extensions::ManifestURLInfo::GetOptionsPage(extension).is_empty());
// Force the options page to open in non-OTR window, because it won't be
// able to save settings from OTR.
@@ -320,7 +321,8 @@ void ExtensionProcessManager::OpenOptionsPage(const Extension* extension,
browser->host_desktop_type());
}
- OpenURLParams params(extension->options_url(), Referrer(), SINGLETON_TAB,
+ OpenURLParams params(extensions::ManifestURLInfo::GetOptionsPage(extension),
+ Referrer(), SINGLETON_TAB,
content::PAGE_TRANSITION_LINK, false);
browser->OpenURL(params);
browser->window()->Show();

Powered by Google App Engine
This is Rietveld 408576698