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

Side by Side Diff: chrome/browser/sync/sync_global_error.cc

Issue 14262009: Add support for multi-line GlobalError messages to Views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/sync/sync_global_error.h" 5 #include "chrome/browser/sync/sync_global_error.h"
6 6
7 #include "chrome/app/chrome_command_ids.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/sync/profile_sync_service.h" 8 #include "chrome/browser/sync/profile_sync_service.h"
9 #include "chrome/browser/sync/profile_sync_service_observer.h" 9 #include "chrome/browser/sync/profile_sync_service_observer.h"
10 #include "chrome/browser/sync/sync_ui_util.h" 10 #include "chrome/browser/sync/sync_ui_util.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 62
63 string16 SyncGlobalError::GetBubbleViewTitle() { 63 string16 SyncGlobalError::GetBubbleViewTitle() {
64 return l10n_util::GetStringUTF16(IDS_SYNC_ERROR_BUBBLE_VIEW_TITLE); 64 return l10n_util::GetStringUTF16(IDS_SYNC_ERROR_BUBBLE_VIEW_TITLE);
65 } 65 }
66 66
67 string16 SyncGlobalError::GetBubbleViewMessage() { 67 string16 SyncGlobalError::GetBubbleViewMessage() {
68 return bubble_message_; 68 return bubble_message_;
69 } 69 }
70 70
71 std::vector<string16> SyncGlobalError::GetBubbleViewMessages() {
72 return std::vector<string16>();
73 }
74
71 string16 SyncGlobalError::GetBubbleViewAcceptButtonLabel() { 75 string16 SyncGlobalError::GetBubbleViewAcceptButtonLabel() {
72 return bubble_accept_label_; 76 return bubble_accept_label_;
73 } 77 }
74 78
75 string16 SyncGlobalError::GetBubbleViewCancelButtonLabel() { 79 string16 SyncGlobalError::GetBubbleViewCancelButtonLabel() {
76 return string16(); 80 return string16();
77 } 81 }
78 82
79 void SyncGlobalError::OnBubbleViewDidClose(Browser* browser) { 83 void SyncGlobalError::OnBubbleViewDidClose(Browser* browser) {
80 } 84 }
(...skipping 26 matching lines...) Expand all
107 bubble_accept_label_ = bubble_accept_label; 111 bubble_accept_label_ = bubble_accept_label;
108 112
109 // Profile can be NULL during tests. 113 // Profile can be NULL during tests.
110 Profile* profile = service_->profile(); 114 Profile* profile = service_->profile();
111 if (profile) { 115 if (profile) {
112 GlobalErrorServiceFactory::GetForProfile( 116 GlobalErrorServiceFactory::GetForProfile(
113 profile)->NotifyErrorsChanged(this); 117 profile)->NotifyErrorsChanged(this);
114 } 118 }
115 } 119 }
116 } 120 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698