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

Side by Side Diff: chrome/browser/chromeos/hats/hats_dialog.cc

Issue 2057853002: Opens the HaTS dialog with an empty HTML (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/chromeos/hats/hats.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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/chromeos/hats/hats_dialog.h" 5 #include "chrome/browser/chromeos/hats/hats_dialog.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "chrome/browser/profiles/profile_manager.h" 9 #include "chrome/browser/profiles/profile_manager.h"
10 #include "chrome/browser/ui/browser_dialogs.h" 10 #include "chrome/browser/ui/browser_dialogs.h"
(...skipping 28 matching lines...) Expand all
39 39
40 ui::ModalType HatsDialog::GetDialogModalType() const { 40 ui::ModalType HatsDialog::GetDialogModalType() const {
41 return ui::MODAL_TYPE_SYSTEM; 41 return ui::MODAL_TYPE_SYSTEM;
42 } 42 }
43 43
44 base::string16 HatsDialog::GetDialogTitle() const { 44 base::string16 HatsDialog::GetDialogTitle() const {
45 return base::string16(); 45 return base::string16();
46 } 46 }
47 47
48 GURL HatsDialog::GetDialogContentURL() const { 48 GURL HatsDialog::GetDialogContentURL() const {
49 // TODO(malaykeshav): Return a valid GURL. 49 return GURL(chrome::kChromeUIHatsURL);
50 return GURL();
51 } 50 }
52 51
53 void HatsDialog::GetWebUIMessageHandlers( 52 void HatsDialog::GetWebUIMessageHandlers(
54 std::vector<WebUIMessageHandler*>* handlers) const {} 53 std::vector<WebUIMessageHandler*>* handlers) const {}
55 54
56 void HatsDialog::GetDialogSize(gfx::Size* size) const { 55 void HatsDialog::GetDialogSize(gfx::Size* size) const {
57 size->SetSize(kDefaultWidth, kDefaultHeight); 56 size->SetSize(kDefaultWidth, kDefaultHeight);
58 } 57 }
59 58
60 bool HatsDialog::CanResizeDialog() const { 59 bool HatsDialog::CanResizeDialog() const {
(...skipping 15 matching lines...) Expand all
76 bool HatsDialog::ShouldShowDialogTitle() const { 75 bool HatsDialog::ShouldShowDialogTitle() const {
77 return false; 76 return false;
78 } 77 }
79 78
80 bool HatsDialog::HandleContextMenu(const content::ContextMenuParams& params) { 79 bool HatsDialog::HandleContextMenu(const content::ContextMenuParams& params) {
81 // Disable context menu. 80 // Disable context menu.
82 return true; 81 return true;
83 } 82 }
84 83
85 } // namespace chromeos 84 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/chromeos/hats/hats.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698