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

Unified Diff: athena/content/app_activity_unittest.cc

Issue 702473005: athena: Remove ActivityViewModel::CreateWidget(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « athena/content/app_activity_proxy.cc ('k') | athena/content/web_activity.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/content/app_activity_unittest.cc
diff --git a/athena/content/app_activity_unittest.cc b/athena/content/app_activity_unittest.cc
index c5ee0bebcb1a7f854c1d7132fdacef1a62281d95..266b940fd4e9ae817b4d98feb64ffd8aec80c50a 100644
--- a/athena/content/app_activity_unittest.cc
+++ b/athena/content/app_activity_unittest.cc
@@ -61,7 +61,7 @@ class TestAppActivity : public AppActivity {
return Activity::ACTIVITY_MEDIA_STATE_NONE;
}
aura::Window* GetWindow() override {
- return view_->GetWidget()->GetNativeWindow();
+ return view_->GetWidget() ? view_->GetWidget()->GetNativeWindow() : nullptr;
}
// ActivityViewModel:
@@ -70,7 +70,6 @@ class TestAppActivity : public AppActivity {
base::string16 GetTitle() const override { return title_; }
bool UsesFrame() const override { return true; }
views::View* GetContentsView() override { return view_; }
- views::Widget* CreateWidget() override { return nullptr; }
gfx::ImageSkia GetOverviewModeImage() override { return gfx::ImageSkia(); }
private:
« no previous file with comments | « athena/content/app_activity_proxy.cc ('k') | athena/content/web_activity.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698