Chromium Code Reviews| Index: chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc |
| diff --git a/chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc b/chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..40a2afa8bb8d9e5ddfaf0ff1d76092b924c4b665 |
| --- /dev/null |
| +++ b/chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc |
| @@ -0,0 +1,14 @@ |
| +// Copyright 2013 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/ui/bookmarks/bookmark_bubble_sign_in_delegate.h" |
| +#include "chrome/browser/ui/chrome_pages.h" |
|
sky
2013/07/17 16:08:02
nit: newline between 5/6.
fdoray
2013/07/17 19:39:56
Done.
|
| +#include "chrome/browser/ui/sync/sync_promo_ui.h" |
| + |
| +BookmarkBubbleSignInDelegate::BookmarkBubbleSignInDelegate(Browser* browser) |
| + : browser_(browser) {} |
| + |
| +void BookmarkBubbleSignInDelegate::OnSignInLinkClicked() { |
| + chrome::ShowBrowserSignin(browser_, SyncPromoUI::SOURCE_BOOKMARK_BUBBLE); |
|
sky
2013/07/17 16:08:02
How do you know browser_ is valid at the time the
fdoray
2013/07/17 19:39:56
Done. If browser_ is no longer valid, I pick eithe
|
| +} |