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

Side by Side Diff: chrome/browser/google/google_url_tracker.cc

Issue 6262018: Cleanup:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/google/google_url_tracker.h" 5 #include "chrome/browser/google/google_url_tracker.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 GoogleURLTrackerInfoBarDelegate::~GoogleURLTrackerInfoBarDelegate() { 67 GoogleURLTrackerInfoBarDelegate::~GoogleURLTrackerInfoBarDelegate() {
68 } 68 }
69 69
70 string16 GoogleURLTrackerInfoBarDelegate::GetMessageText() const { 70 string16 GoogleURLTrackerInfoBarDelegate::GetMessageText() const {
71 // TODO(ukai): change new_google_url to google_base_domain? 71 // TODO(ukai): change new_google_url to google_base_domain?
72 return l10n_util::GetStringFUTF16(IDS_GOOGLE_URL_TRACKER_INFOBAR_MESSAGE, 72 return l10n_util::GetStringFUTF16(IDS_GOOGLE_URL_TRACKER_INFOBAR_MESSAGE,
73 UTF8ToUTF16(new_google_url_.spec())); 73 UTF8ToUTF16(new_google_url_.spec()));
74 } 74 }
75 75
76 int GoogleURLTrackerInfoBarDelegate::GetButtons() const {
77 return BUTTON_OK | BUTTON_CANCEL;
78 }
79
80 string16 GoogleURLTrackerInfoBarDelegate::GetButtonLabel( 76 string16 GoogleURLTrackerInfoBarDelegate::GetButtonLabel(
81 InfoBarButton button) const { 77 InfoBarButton button) const {
82 return l10n_util::GetStringUTF16((button == BUTTON_OK) ? 78 return l10n_util::GetStringUTF16((button == BUTTON_OK) ?
83 IDS_CONFIRM_MESSAGEBOX_YES_BUTTON_LABEL : 79 IDS_CONFIRM_MESSAGEBOX_YES_BUTTON_LABEL :
84 IDS_CONFIRM_MESSAGEBOX_NO_BUTTON_LABEL); 80 IDS_CONFIRM_MESSAGEBOX_NO_BUTTON_LABEL);
85 } 81 }
86 82
87 83
88 // GoogleURLTracker ----------------------------------------------------------- 84 // GoogleURLTracker -----------------------------------------------------------
89 85
90 const char GoogleURLTracker::kDefaultGoogleHomepage[] = 86 const char GoogleURLTracker::kDefaultGoogleHomepage[] =
91 "http://www.google.com/"; 87 "http://www.google.com/";
92 const char GoogleURLTracker::kSearchDomainCheckURL[] = 88 const char GoogleURLTracker::kSearchDomainCheckURL[] =
93 "https://www.google.com/searchdomaincheck?format=domain&type=chrome"; 89 "https://www.google.com/searchdomaincheck?format=domain&type=chrome";
94 90
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 } 367 }
372 368
373 void GoogleURLTracker::ShowGoogleURLInfoBarIfNecessary( 369 void GoogleURLTracker::ShowGoogleURLInfoBarIfNecessary(
374 TabContents* tab_contents) { 370 TabContents* tab_contents) {
375 if (!need_to_prompt_) 371 if (!need_to_prompt_)
376 return; 372 return;
377 DCHECK(!fetched_google_url_.is_empty()); 373 DCHECK(!fetched_google_url_.is_empty());
378 374
379 infobar_ = (*infobar_creator_)(tab_contents, this, fetched_google_url_); 375 infobar_ = (*infobar_creator_)(tab_contents, this, fetched_google_url_);
380 } 376 }
OLDNEW
« no previous file with comments | « chrome/browser/google/google_url_tracker.h ('k') | chrome/browser/notifications/desktop_notification_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698