| Index: athena/test/sample_activity_factory.cc
|
| diff --git a/athena/test/sample_activity_factory.cc b/athena/test/sample_activity_factory.cc
|
| index d7444ebc40e44fe995ac10e96b4637e7ca6b0351..87bef8c042a1a64dd15dd9604d6d3e1754ea2f9b 100644
|
| --- a/athena/test/sample_activity_factory.cc
|
| +++ b/athena/test/sample_activity_factory.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include <string>
|
|
|
| +#include "athena/activity/public/activity_manager.h"
|
| #include "athena/test/sample_activity.h"
|
| #include "base/logging.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| @@ -31,16 +32,20 @@ Activity* SampleActivityFactory::CreateWebActivity(
|
| content::BrowserContext* browser_context,
|
| const base::string16& title,
|
| const GURL& url) {
|
| - return new SampleActivity(
|
| + Activity* activity = new SampleActivity(
|
| kDefaultColor, kDefaultContentColor, base::UTF8ToUTF16(url.spec()));
|
| + ActivityManager::Get()->AddActivity(activity);
|
| + return activity;
|
| }
|
|
|
| Activity* SampleActivityFactory::CreateAppActivity(
|
| extensions::AppWindow* app_window,
|
| views::WebView* web_view) {
|
| DCHECK(!web_view);
|
| - return new SampleActivity(
|
| + Activity* activity = new SampleActivity(
|
| kDefaultAppColor, kDefaultAppContentColor, base::UTF8ToUTF16("App"));
|
| + ActivityManager::Get()->AddActivity(activity);
|
| + return activity;
|
| }
|
|
|
| } // namespace test
|
|
|