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

Side by Side Diff: chrome/browser/dom_ui/new_tab_page_sync_handler.cc

Issue 6335001: Cleanup: Remove unneeded chrome/browser/prefs/pref_service.h usage.... (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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/dom_ui/new_tab_page_sync_handler.h" 5 #include "chrome/browser/dom_ui/new_tab_page_sync_handler.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/string_split.h" 11 #include "base/string_split.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/net/chrome_url_request_context.h" 15 #include "chrome/browser/net/chrome_url_request_context.h"
16 #include "chrome/browser/prefs/pref_service.h"
17 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/browser/renderer_host/render_view_host.h" 17 #include "chrome/browser/renderer_host/render_view_host.h"
19 #include "grit/browser_resources.h" 18 #include "grit/browser_resources.h"
20 #include "grit/generated_resources.h" 19 #include "grit/generated_resources.h"
21 #include "net/base/cookie_monster.h" 20 #include "net/base/cookie_monster.h"
22 #include "net/url_request/url_request_context.h" 21 #include "net/url_request/url_request_context.h"
23 22
24 // Default URL for the sync web interface. 23 // Default URL for the sync web interface.
25 // 24 //
26 // TODO(idana): when we figure out how we are going to allow third parties to 25 // TODO(idana): when we figure out how we are going to allow third parties to
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 if (linkurl.empty()) { 229 if (linkurl.empty()) {
231 value.SetBoolean("linkurlisset", false); 230 value.SetBoolean("linkurlisset", false);
232 } else { 231 } else {
233 value.SetBoolean("linkurlisset", true); 232 value.SetBoolean("linkurlisset", true);
234 value.SetString("linkurl", linkurl); 233 value.SetString("linkurl", linkurl);
235 } 234 }
236 } 235 }
237 } 236 }
238 dom_ui_->CallJavascriptFunction(L"syncMessageChanged", value); 237 dom_ui_->CallJavascriptFunction(L"syncMessageChanged", value);
239 } 238 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/options/options_window_view.cc ('k') | chrome/browser/dom_ui/options/import_data_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698