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

Unified Diff: chrome/browser/ui/tabs/pinned_tab_codec.cc

Issue 12316077: Move the parsing of app.launch related keys out of Extension class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + review comments addressed Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/tabs/pinned_tab_codec.cc
diff --git a/chrome/browser/ui/tabs/pinned_tab_codec.cc b/chrome/browser/ui/tabs/pinned_tab_codec.cc
index 2c406fc3eefe36080db500778814a6b3b807267c..a49e626fbf1bfff3d7845f6aa10454feefeae120 100644
--- a/chrome/browser/ui/tabs/pinned_tab_codec.cc
+++ b/chrome/browser/ui/tabs/pinned_tab_codec.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/ui/browser_iterator.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
+#include "chrome/common/extensions/app_launcher_info.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/pref_names.h"
#include "content/public/browser/navigation_entry.h"
@@ -62,7 +63,8 @@ static void EncodePinnedTab(TabStripModel* model,
// For apps we use the launch url. We do this because the user is
// effectively restarting the app, so returning them to the app's launch
// page seems closest to what they expect.
- value->SetString(kURL, extension->GetFullLaunchURL().spec());
+ value->SetString(
+ kURL, extensions::AppLauncherInfo::GetFullLaunchURL(extension).spec());
values->Append(value.release());
} else {
NavigationEntry* entry = web_contents->GetController().GetActiveEntry();

Powered by Google App Engine
This is Rietveld 408576698