Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15392799
D16432.id39529.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D16432.id39529.diff
View Options
diff --git a/src/applications/xhprof/controller/PhabricatorXHProfController.php b/src/applications/xhprof/controller/PhabricatorXHProfController.php
--- a/src/applications/xhprof/controller/PhabricatorXHProfController.php
+++ b/src/applications/xhprof/controller/PhabricatorXHProfController.php
@@ -2,26 +2,4 @@
abstract class PhabricatorXHProfController extends PhabricatorController {
- public function buildStandardPageResponse($view, array $data) {
- $page = $this->buildStandardPageView();
-
- $page->setApplicationName(pht('XHProf'));
- $page->setBaseURI('/xhprof/');
- $page->setTitle(idx($data, 'title'));
- $page->setGlyph("\xE2\x98\x84");
- $page->appendChild($view);
- $page->setDeviceReady(true);
-
- $response = new AphrontWebpageResponse();
-
- if (isset($data['frame'])) {
- $response->setFrameable(true);
- $page->setFrameable(true);
- $page->setShowChrome(false);
- $page->setDisableConsole(true);
- }
-
- return $response->setContent($page->render());
- }
-
}
diff --git a/src/applications/xhprof/controller/PhabricatorXHProfProfileController.php b/src/applications/xhprof/controller/PhabricatorXHProfProfileController.php
--- a/src/applications/xhprof/controller/PhabricatorXHProfProfileController.php
+++ b/src/applications/xhprof/controller/PhabricatorXHProfProfileController.php
@@ -47,11 +47,14 @@
$crumbs = $this->buildApplicationCrumbs();
$crumbs->addTextCrumb(pht('%s Profile', $symbol));
- return $this->buildStandardPageResponse(
- array($crumbs, $view),
- array(
- 'title' => pht('Profile'),
- 'frame' => $is_framed,
- ));
+ $title = pht('Profile');
+
+ return $this->newPage()
+ ->setTitle($title)
+ ->setCrumbs($crumbs)
+ ->setFrameable(true)
+ ->setShowChrome(false)
+ ->setDisableConsole(true)
+ ->appendChild($view);
}
}
diff --git a/src/view/page/PhabricatorStandardPageView.php b/src/view/page/PhabricatorStandardPageView.php
--- a/src/view/page/PhabricatorStandardPageView.php
+++ b/src/view/page/PhabricatorStandardPageView.php
@@ -21,6 +21,7 @@
private $quicksandConfig = array();
private $crumbs;
private $navigation;
+ private $frameable = false;
public function setShowFooter($show_footer) {
$this->showFooter = $show_footer;
@@ -890,7 +891,8 @@
} else {
$content = $this->render();
$response = id(new AphrontWebpageResponse())
- ->setContent($content);
+ ->setContent($content)
+ ->setFrameable($this->getFrameable());
}
return $response;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 16, 5:38 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7707422
Default Alt Text
D16432.id39529.diff (2 KB)
Attached To
Mode
D16432: Removing deprecated method calls
Attached
Detach File
Event Timeline
Log In to Comment