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

Side by Side Diff: chrome/browser/chromeos/sim_dialog_delegate.cc

Issue 12767006: [Cleanup] Remove StringPrintf from global namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, once more Created 7 years, 9 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/chromeos/sim_dialog_delegate.h" 5 #include "chrome/browser/chromeos/sim_dialog_delegate.h"
6 6
7 #include "base/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "chrome/browser/chromeos/login/user_manager.h" 8 #include "chrome/browser/chromeos/login/user_manager.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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 std::string url_string(chrome::kChromeUISimUnlockURL); 69 std::string url_string(chrome::kChromeUISimUnlockURL);
70 return GURL(url_string); 70 return GURL(url_string);
71 } else { 71 } else {
72 std::string mode_value; 72 std::string mode_value;
73 if (dialog_mode_ == SIM_DIALOG_CHANGE_PIN) 73 if (dialog_mode_ == SIM_DIALOG_CHANGE_PIN)
74 mode_value = kSimDialogChangePinMode; 74 mode_value = kSimDialogChangePinMode;
75 else if (dialog_mode_ == SIM_DIALOG_SET_LOCK_ON) 75 else if (dialog_mode_ == SIM_DIALOG_SET_LOCK_ON)
76 mode_value = kSimDialogSetLockOnMode; 76 mode_value = kSimDialogSetLockOnMode;
77 else 77 else
78 mode_value = kSimDialogSetLockOffMode; 78 mode_value = kSimDialogSetLockOffMode;
79 return GURL(StringPrintf(kSimDialogSpecialModeURL, mode_value.c_str())); 79 return GURL(
80 base::StringPrintf(kSimDialogSpecialModeURL, mode_value.c_str()));
80 } 81 }
81 } 82 }
82 83
83 void SimDialogDelegate::GetWebUIMessageHandlers( 84 void SimDialogDelegate::GetWebUIMessageHandlers(
84 std::vector<WebUIMessageHandler*>* handlers) const { 85 std::vector<WebUIMessageHandler*>* handlers) const {
85 } 86 }
86 87
87 void SimDialogDelegate::GetDialogSize(gfx::Size* size) const { 88 void SimDialogDelegate::GetDialogSize(gfx::Size* size) const {
88 // TODO(nkostylev): Set custom size based on locale settings. 89 // TODO(nkostylev): Set custom size based on locale settings.
89 if (dialog_mode_ == SIM_DIALOG_CHANGE_PIN) 90 if (dialog_mode_ == SIM_DIALOG_CHANGE_PIN)
(...skipping 20 matching lines...) Expand all
110 return false; 111 return false;
111 } 112 }
112 113
113 bool SimDialogDelegate::HandleContextMenu( 114 bool SimDialogDelegate::HandleContextMenu(
114 const content::ContextMenuParams& params) { 115 const content::ContextMenuParams& params) {
115 // Disable context menu. 116 // Disable context menu.
116 return true; 117 return true;
117 } 118 }
118 119
119 } // namespace chromeos 120 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698