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

Side by Side Diff: chrome/browser/ui/webui/instant_ui.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh 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/ui/webui/instant_ui.h" 5 #include "chrome/browser/ui/webui/instant_ui.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 InstantUI::InstantUI(content::WebUI* web_ui) : WebUIController(web_ui) { 162 InstantUI::InstantUI(content::WebUI* web_ui) : WebUIController(web_ui) {
163 web_ui->AddMessageHandler(new InstantUIMessageHandler()); 163 web_ui->AddMessageHandler(new InstantUIMessageHandler());
164 164
165 // Set up the chrome://instant/ source. 165 // Set up the chrome://instant/ source.
166 Profile* profile = Profile::FromWebUI(web_ui); 166 Profile* profile = Profile::FromWebUI(web_ui);
167 content::WebUIDataSource::Add(profile, CreateInstantHTMLSource()); 167 content::WebUIDataSource::Add(profile, CreateInstantHTMLSource());
168 } 168 }
169 169
170 // static 170 // static
171 void InstantUI::RegisterUserPrefs(PrefRegistrySyncable* registry) { 171 void InstantUI::RegisterUserPrefs(PrefRegistrySyncable* registry) {
172 registry->RegisterStringPref(prefs::kInstantUIZeroSuggestUrlPrefix, "", 172 registry->RegisterStringPref(prefs::kInstantUIZeroSuggestUrlPrefix,
173 std::string(),
173 PrefRegistrySyncable::UNSYNCABLE_PREF); 174 PrefRegistrySyncable::UNSYNCABLE_PREF);
174 } 175 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/inspect_ui.cc ('k') | chrome/browser/ui/webui/net_internals/net_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698