summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/notifications/system_notification_factory.cc
blob: 51b308f3a60aa6b55ad19ab89f5a5da3b1ac7aae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2010 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 "chrome/browser/chromeos/notifications/system_notification_factory.h"

#include "chrome/browser/notifications/desktop_notification_service.h"

namespace chromeos {

// static
Notification SystemNotificationFactory::Create(
    const GURL& icon, const string16& title,
    const string16& text,
    NotificationDelegate* delegate) {
  string16 content_url = DesktopNotificationService::CreateDataUrl(
      icon, title, text, WebKit::WebTextDirectionDefault);
  return Notification(GURL(), GURL(content_url), string16(), string16(),
                      delegate);
}

}  // namespace chromeos