Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

system_notification_factory.cc

// 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);
  return Notification(GURL(), GURL(content_url), std::wstring(), delegate);
}
}  // namespace chromeos

Generated by  Doxygen 1.6.0   Back to index