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

Unified Diff: athena/test/base/sample_activity_factory.cc

Issue 863033002: Delete athena/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « athena/test/base/sample_activity_factory.h ('k') | athena/test/base/test_app_model_builder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/test/base/sample_activity_factory.cc
diff --git a/athena/test/base/sample_activity_factory.cc b/athena/test/base/sample_activity_factory.cc
deleted file mode 100644
index 0c921e28bfcf759e7b685c0522c3dd9c112bd626..0000000000000000000000000000000000000000
--- a/athena/test/base/sample_activity_factory.cc
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "athena/test/base/sample_activity_factory.h"
-
-#include <string>
-
-#include "athena/activity/public/activity_manager.h"
-#include "athena/test/base/sample_activity.h"
-#include "base/logging.h"
-#include "base/strings/utf_string_conversions.h"
-#include "third_party/skia/include/core/SkColor.h"
-#include "url/gurl.h"
-
-namespace athena {
-namespace test {
-
-namespace {
-const SkColor kDefaultColor = SK_ColorRED;
-const SkColor kDefaultContentColor = SK_ColorGREEN;
-
-const SkColor kDefaultAppColor = SK_ColorYELLOW;
-const SkColor kDefaultAppContentColor = SK_ColorBLUE;
-}
-
-SampleActivityFactory::SampleActivityFactory() {}
-
-SampleActivityFactory::~SampleActivityFactory() {}
-
-Activity* SampleActivityFactory::CreateWebActivity(
- content::BrowserContext* browser_context,
- const base::string16& title,
- const GURL& url) {
- Activity* activity = new SampleActivity(
- kDefaultColor, kDefaultContentColor, base::UTF8ToUTF16(url.spec()));
- ActivityManager::Get()->AddActivity(activity);
- return activity;
-}
-
-Activity* SampleActivityFactory::CreateWebActivity(
- content::WebContents* contents) {
- Activity* activity =
- new SampleActivity(kDefaultColor, kDefaultContentColor, base::string16());
- ActivityManager::Get()->AddActivity(activity);
- return activity;
-}
-
-Activity* SampleActivityFactory::CreateAppActivity(
- const std::string& app_id,
- views::WebView* web_view) {
- DCHECK(!web_view);
- Activity* activity = new SampleActivity(
- kDefaultAppColor, kDefaultAppContentColor, base::UTF8ToUTF16("App"));
- ActivityManager::Get()->AddActivity(activity);
- return activity;
-}
-
-} // namespace test
-} // namespace athena
« no previous file with comments | « athena/test/base/sample_activity_factory.h ('k') | athena/test/base/test_app_model_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698